DEV: Remove 'htmlSafe' string prototype extensions (#176)
Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions
This commit is contained in:
parent
6223c2d8a5
commit
92bdea38b2
|
@ -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>`));
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue