DEV: Remove 'htmlSafe' string prototype extensions (#97)
## Ember Upgrade Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions
This commit is contained in:
parent
017bbe07df
commit
834d22d868
|
@ -6,6 +6,7 @@ import Docs from "discourse/plugins/discourse-docs/discourse/models/docs";
|
||||||
import { getOwner } from "@ember/application";
|
import { getOwner } from "@ember/application";
|
||||||
import getURL from "discourse-common/lib/get-url";
|
import getURL from "discourse-common/lib/get-url";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
|
import { htmlSafe } from "@ember/template";
|
||||||
|
|
||||||
const SHOW_FILTER_AT = 10;
|
const SHOW_FILTER_AT = 10;
|
||||||
|
|
||||||
|
@ -213,7 +214,7 @@ export default Controller.extend({
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: I18n.t("docs.no_docs.title"),
|
title: I18n.t("docs.no_docs.title"),
|
||||||
body: body.htmlSafe(),
|
body: htmlSafe(body),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue