mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
replace innerHTML to safer textContent where possible
This commit is contained in:
parent
9b09d369d9
commit
c4cc50ca39
8 changed files with 15 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue