mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-03 06:15:59 +00:00
Marked all translated strings as safe before passing them to the nunjuck template
This commit is contained in:
parent
10dc315f3b
commit
b520b4c37a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user