String.htmlSafe()

htmlSafeHandlebars.SafeStringpublicstatic

Defined in packages/ember-htmlbars/lib/utils/string.js:77

Mark a string as safe for unescaped output with Ember templates. If you return HTML from a helper, use this function to ensure Ember's rendering layer does not escape the HTML.

Ember.String.htmlSafe('<div>someString</div>')

Returns:

Handlebars.SafeString
A string that will not be HTML escaped by Handlebars.
doc_EmberJs
2016-11-30 16:53:30
Comments
Leave a Comment

Please login to continue.