DEV: Remove 'htmlSafe' string prototype extensions (#16766)

Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions
This commit is contained in:
Isaac Janzen
2022-05-13 14:58:26 -05:00
committed by GitHub
parent 9eadabe9fc
commit 85ceafb4dc
33 changed files with 179 additions and 110 deletions
@@ -1,5 +1,6 @@
import Helper from "@ember/component/helper";
import { iconHTML } from "discourse-common/lib/icon-library";
import { htmlSafe } from "@ember/template";
export default Helper.extend({
compute([disposition]) {
@@ -22,6 +23,6 @@ export default Helper.extend({
break;
}
}
return iconHTML(icon, { title }).htmlSafe();
return htmlSafe(iconHTML(icon, { title }));
},
});