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 ea67553c97 - Show all commits

View file

@ -66,6 +66,7 @@ function removeUnknownUsers(node) {
// add user note if own request
if (profileLink.length > 0) {
// Workaround to avoid innerHTML because of #38, see https://devtidbits.com/2017/12/06/quick-fix-the-unsafe_var_assignment-warning-in-javascript/
let parser = new DOMParser();
let parsedDocument = parser.parseFromString(profileData, 'text/html');