This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/app/assets/javascripts/discourse/helpers/replace-emoji.js
T
2020-03-12 13:29:55 -04:00

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));
});