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:
Isaac Janzen 2022-06-01 10:16:17 -05:00 committed by GitHub
parent 017bbe07df
commit 834d22d868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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),
}; };
}, },