Marked all translated strings as safe before passing them to the nunjuck template

This commit is contained in:
Dan Forsyth 2021-01-20 07:16:09 -05:00
parent 10dc315f3b
commit b520b4c37a

View File

@ -176,7 +176,7 @@ var Module = Class.extend({
});
this._nunjucksEnvironment.addFilter("translate", function (str, variables) {
return self.translate(str, variables);
return nunjucks.runtime.markSafe(self.translate(str, variables));
});
return this._nunjucksEnvironment;