Download Back To CSSScript.Com
Lightning-fast HTML character escaping library that outperforms Rust alternatives. Prevents XSS attacks, 100% test coverage, works everywhere.
import { escapeHTML, unescapeHTML } from './index.mjs';
const escapedString = escapeHTML('YOUR HTML HERE');
console.log(escapedString);
const unescapedString = unescapeHTML('Escaped String Here');
console.log(unescapedString);