diff --git a/assets/javascripts/discourse/components/query-row-content.js b/assets/javascripts/discourse/components/query-row-content.js index b9937be..95a4bdb 100644 --- a/assets/javascripts/discourse/components/query-row-content.js +++ b/assets/javascripts/discourse/components/query-row-content.js @@ -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", `${parts.join("")}`.htmlSafe()); + this.set("rowContents", htmlSafe(`${parts.join("")}`)); }, });