Function
isHTMLSafe Boolean public
Module:
ember
Defined in packages/ember-glimmer/lib/utils/string.js:100
- returns
- Boolean
- `true` if the string was decorated with `htmlSafe`, `false` otherwise.
Detects if a string was decorated using Ember.String.htmlSafe
.
1 2 3 4 5 |
var plainString = 'plain string', safeString = Ember.String.htmlSafe('<div>someValue</div>'); Ember.String.isHTMLSafe(plainString); // false Ember.String.isHTMLSafe(safeString); // true |