I'm fairly new to Ember, but I'm on v1.12 and struggling with the following problem.
- I'm making a template helper
- The helper takes the bodies of tweets and HTML anchors around the hashtags and usernames.
The paradigm I'm following is:
- use
Ember.Handlebars.Utils.escapeExpression(value);to escape the input text - do logic
- use
Ember.Handlebars.SafeString(value);
However, 1. seems to escape apostrophes. Which means that any sentences I pass to it get escaped characters. How can I avoid this whilst making sure that I'm not introducing potential vulnerabilities?
Aucun commentaire:
Enregistrer un commentaire