Function

htmlSafe Handlebars.SafeString public

Module: @ember/string
import { htmlSafe } from '@ember/template';
returns
Handlebars.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.

import { htmlSafe } from '@ember/string';

htmlSafe('<div>someString</div>')

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Ftemplate/htmlSafe