Skip to content

Node.js based forum software built for the modern web

test: fix tag test

Barış Soner Uşaklı26583b99566d
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index 91e9f9e803..81caf3d617 100644
--- a/public/src/modules/helpers.common.js
+++ b/public/src/modules/helpers.common.js
@@ -101,9 +101,9 @@ module.exports = function (utils, Benchpress, tx, relative_path) {
const name = tag.name ? `name="${escape(tag.name)}" ` : '';
const property = tag.property ? `property="${escape(tag.property)}" ` : '';
const tagContent = tag.content ?
- tag.translate ? _tx.call(this, tag.content) : escape(tag.content).replace(/\n/g, ' ') :
+ tag.translate ? _tx.call(this, tag.content) : tag.content.replace(/\n/g, ' ') :
'';
- const content = tagContent ? `content="${tagContent}" ` : '';
+ const content = tagContent ? `content="${escape(tagContent)}" ` : '';
return '<meta ' + name + property + content + '/>\n\t';
}