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 subscribe_data = JSON.parse(document.getElementById('subscribe_data').innerHTML);
var subscribe_data = JSON.parse(document.getElementById('subscribe_data').textContent);
var subscribe_button = document.getElementById('subscribe');
subscribe_button.parentNode['action'] = 'javascript:void(0)';