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) { function stripHtml(html) {
let tmp = document.createElement("DIV"); let tmp = document.createElement("DIV");
tmp.innerHTML = html; tmp.innerText = html;
return tmp.textContent || tmp.innerText || ""; return tmp.innerHTML;
} }
document.onkeydown = (e) => { document.onkeydown = (e) => {