Updated client-side DOM manipulation functions to unescape char-codes before injecting them via innerText instead of raw-dogging it into innerHTML
This commit is contained in:
parent
e46513cc1a
commit
4ed4b572f2
10 changed files with 25 additions and 26 deletions
|
|
@ -102,7 +102,7 @@ class profileUpdateTextPrompt extends profileUpdatePrompt{
|
|||
const update = await utils.ajax.updateProfile(updateObj);
|
||||
|
||||
//Fill content from update, make sure to add line breaks for the bio
|
||||
this.contentNode.innerHTML = update[this.field].replaceAll('\n','<br>');
|
||||
this.contentNode.textContent = utils.unescapeEntities(update[this.field].replaceAll('\n','<br>'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue