8 lines
248 B
JavaScript
8 lines
248 B
JavaScript
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
import { emojiUnescape } from "discourse/lib/text";
|
|
import { htmlSafe } from "@ember/template";
|
|
|
|
registerUnbound("replace-emoji", text => {
|
|
return htmlSafe(emojiUnescape(text));
|
|
});
|