replace innerHTML to safer textContent where possible

This commit is contained in:
meow 2022-04-20 13:40:30 +03:00
parent 9b09d369d9
commit c4cc50ca39
8 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
'use strict';
var community_data = JSON.parse(document.getElementById('community_data').innerHTML);
var community_data = JSON.parse(document.getElementById('community_data').textContent);
String.prototype.supplant = function (o) {
return this.replace(/{([^{}]*)}/g, function (a, b) {