javascript - Meteor.js return innerHTML in helper -
is there way can homecoming innerhtml in helper? mean this:
text: function(){ homecoming "<p>it's working!</p>" }
there more of records since loop them through {{#each}} loop , tried throught jquery had hard times naming classes/id's appreciate if tell me how helper
you can utilize handlebars.safestring:
text: function(){ homecoming new handlebars.safestring("<p>it's working!</p>"); }
it produce safe html string. using not escaping tripple brackets {{{...}}} not secure if helper returns user's input.
edit: in meteor 1.* utilize spacebars instead of handlebars:
text: function(){ homecoming new spacebars.safestring("<p>it's working!</p>"); }
javascript jquery html meteor
No comments:
Post a Comment