Function

Module: ember
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