isHTMLSafeBooleanpublicstatic
Detects if a string was decorated using Ember.String.htmlSafe.
var plainString = 'plain string',
safeString = Ember.String.htmlSafe('<div>someValue</div>');
Ember.String.isHTMLSafe(plainString); // false
Ember.String.isHTMLSafe(safeString); // true
Returns:
-
Boolean - `true` if the string was decorated with `htmlSafe`, `false` otherwise.
Please login to continue.