mardi 31 mars 2015

How to render italic/bold text using handlebars?

So here is the thing, I am using Handlebars to render the template on the page.


Now in the context js object, I have a paragraph, which should have few italic words,


For e.g:



var context = {
"event":"This is event name <i>XYZ</i>"
}


And the paragraph is rendered as,



This is event name <i>XYZ</i>


Is there any way I can make/escape the font italic/bold in Handlebarsjs/Mustachejs ??


Here is the fiddle


Thanks!





Aucun commentaire:

Enregistrer un commentaire