mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 10:32:59 +03:00
sanitize html fuck
This commit is contained in:
parent
8bb79a92eb
commit
cb5f2d9dd7
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user