stringUtils.prototype.escapeHTML = html => { let elem = document.createElement("div"); elem.textContent = html; return elem.innerHTML; };