Bugfix/#38 unsafe assignment to innerhtml #45

Merged
Serraniel merged 3 commits from bugfix/#38-unsafe-assignment-to-innerhtml into develop 2020-09-14 01:01:14 +02:00
Showing only changes of commit b4d6a886fe - Show all commits

View file

@ -65,7 +65,10 @@ function removeUnknownUsers(node) {
let profileData = upperDiv.innerHTML;
// exchange data
upperDiv.innerHTML = `<b>${anime}</b>`;
let bElement = document.createElement('b');
bElement.textContent = anime;
upperDiv.innerHTML = ``;
upperDiv.appendChild(bElement);
// add user note if own request
if (profileLink.length > 0) {