decide.nolog.cz/app/helpers/mark-as-safe-html.js
Jeldrik Hanschke 8a62662e6e
migrate from ember-i18n to ember-intl (#358)
* mark string as html safe before passing to translation instead of bypassing HTML escape using {{{unsafe}}} syntax
* replace ember-i18n with ember-intl
2020-01-30 00:23:12 +01:00

6 lines
180 B
JavaScript

import { helper } from '@ember/component/helper';
import { htmlSafe } from '@ember/template';
export default helper(function markAsSafeHtml([html]) {
return htmlSafe(html);
});