fix(ng-backend): add proper escaping in snippet

Closes #1