All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.module-min.sanitize.js Maven / Gradle / Ivy

The newest version!
const escape_div=document.createElement("div"),escape_text=document.createTextNode(""),sanitizer_div=document.createElement("div");escape_div.appendChild(escape_text);export function escape(a){return escape_div._text!==a&&(escape_text.nodeValue=a,escape_div._html=escape_div.innerHTML,escape_div._text=a),escape_div._html}export function sanitize(a){return sanitizer_div._html!==a&&(sanitizer_div.innerHTML=a,sanitizer_div._html=a,sanitizer_div._text=sanitizer_div.textContent),sanitizer_div._text}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy