lundi 5 mai 2014

Can I pass HTML to an XTemplate for rendering?

I don't believe this will work but figured I'd ask it anyway...

When passing data to an XTemplate, can I pass HTML and have that HTML rendered?

For example:


Code:



new Ext.XTemplate("<tpl>Hello {test}...</tpl>").apply({test: '<b>MikeB</b>'})


And I want to see:

Hello MikeB...

NOT

Hello <b>MikeB</b>...

Thanks





Aucun commentaire:

Enregistrer un commentaire