mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 15:27:16 +03:00
Fix HTML escaping in renderer crashing on non-string values
This commit is contained in:
parent
4dda9a6167
commit
da8027163e
@ -52,7 +52,7 @@ var DOM = (function(){
|
||||
* Converts characters to their HTML entity form.
|
||||
*/
|
||||
escapeHTML: function(html){
|
||||
return html.replace(entityRegex, s => entityMap[s]);
|
||||
return String(html).replace(entityRegex, s => entityMap[s]);
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user