mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 07:17:12 +03:00
Add HTML escaping to templating in src.template.js
This commit is contained in:
parent
062abeb86a
commit
218c28f30e
@ -10,9 +10,9 @@ TEMPLATE.prototype.apply = function(obj, processor){
|
||||
|
||||
if (processor){
|
||||
var updated = processor(match, value);
|
||||
return typeof updated === "undefined" ? value : updated;
|
||||
return typeof updated === "undefined" ? DOM.escapeHTML(value) : updated;
|
||||
}
|
||||
|
||||
return value;
|
||||
return DOM.escapeHTML(value);
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user