Add files via upload

This commit is contained in:
Rodrigo Emanuel
2025-05-07 19:05:01 -03:00
committed by GitHub
parent 7c81713964
commit da2475b1e5
8 changed files with 121 additions and 23 deletions

View File

@@ -344,4 +344,10 @@ async function cleanStringOfHTMLButEmotes(string) {
// Remove todo o restante do HTML
return container.textContent || "";
}
function stripStringFromHtml(html) {
let doc = new DOMParser().parseFromString(html, 'text/html');
return doc.body.textContent || "";
}