sanitize html fuck

This commit is contained in:
MeexReay 2025-03-20 01:25:23 +03:00
parent 8bb79a92eb
commit cb5f2d9dd7

View File

@ -97,8 +97,8 @@ function convertColorCodes(input) {
function stripHtml(html) {
let tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText || "";
tmp.innerText = html;
return tmp.innerHTML;
}
document.onkeydown = (e) => {