Added spoiler support.
This commit is contained in:
parent
b56c9a3365
commit
77bc549653
9 changed files with 182 additions and 71 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue