Added spoiler support.

This commit is contained in:
rainbow napkin 2025-01-11 01:30:25 -05:00
parent b56c9a3365
commit 77bc549653
9 changed files with 182 additions and 71 deletions

View file

@ -19,6 +19,14 @@ class canopyUtils{
this.ajax = new canopyAjaxUtils();
this.ux = new canopyUXUtils();
}
//somehow this isn't built in to JS's unescape functions...
unescapeEntities(string){
//Create a new DOMParser and tell it to parse string as HTML
const outNode = new DOMParser().parseFromString(string, "text/html");
//Grab text content and send that shit out
return outNode.documentElement.textContent;
}
}
class canopyUXUtils{