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) {
|
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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user