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

Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions
This commit is contained in:
Isaac Janzen 2022-06-01 11:42:50 -05:00 committed by GitHub
parent 6223c2d8a5
commit 92bdea38b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { autoUpdatingRelativeAge } from "discourse/lib/formatter";
import { convertIconClass, iconHTML } from "discourse-common/lib/icon-library";
import getURL from "discourse-common/lib/get-url";
import { capitalize } from "@ember/string";
import { htmlSafe } from "@ember/template";
function icon_or_image_replacement(str, ctx) {
str = Ember.get(ctx.contexts[0], str);
@ -103,7 +104,7 @@ const QueryRowContentComponent = Ember.Component.extend({
}
});
this.set("rowContents", `<td>${parts.join("</td><td>")}</td>`.htmlSafe());
this.set("rowContents", htmlSafe(`<td>${parts.join("</td><td>")}</td>`));
},
});