jeudi 2 juillet 2015

how to print unicode character in handlebars template

I am trying to print a Unicode character in an Ember 1.12.0 application but instead of getting the graphic that the code represents I'm simply getting the code printed to screen. In the example below, instead of getting the pencil, I simply get the code \u270E printed. This is what I'm doing in my myemberapplication.hbs file

<span {{action "someEmberAction" }}> \u270E</span>

Question: how do I print a Unicode character in a .hbs file




Aucun commentaire:

Enregistrer un commentaire