Skip to content

Node.js based forum software built for the modern web

fix: add missing escape

Julian Lam92a7fd5904d3
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index 71caca1a6c..83acd0849c 100644
--- a/public/src/modules/helpers.common.js
+++ b/public/src/modules/helpers.common.js
@@ -552,7 +552,7 @@ module.exports = function (utils, Benchpress, tx, relative_path) {
function renderShortcodeEmoji(text, emojiMeta) {
if (!text || !emojiMeta || !emojiMeta.length) {
- return String(text || '');
+ return String(escape(text) || '');
}
let result = String(text);
for (const { clean, hostname } of emojiMeta) {