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:
rainbow napkin 2025-04-12 07:21:36 -04:00
parent e46513cc1a
commit 4ed4b572f2
10 changed files with 25 additions and 26 deletions

View file

@ -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>'));
}
}
}