discourse/app/assets/javascripts/discourse-common/addon/helpers/html-safe.js

9 lines
248 B
JavaScript

import { htmlSafe as emberHtmlSafe } from "@ember/template";
import { registerRawHelper } from "discourse-common/lib/helpers";
registerRawHelper("html-safe", htmlSafe);
export default function htmlSafe(string) {
return emberHtmlSafe(string);
}