Function
htmlSafe SafeString public
Module:
@ember/template
Defined in packages/@ember/-internals/glimmer/lib/utils/string.ts:61
import { htmlSafe } from '@ember/template'; |
- returns
- SafeString
- A string that will not be HTML escaped by Handlebars.
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.
1 2 3 |
import { htmlSafe } from '@ember/template'; htmlSafe('<div>someString</div>') |