1 comment

[ 3.6 ms ] story [ 14.7 ms ] thread
Sanitize your HTML on steroids. You may not need heavy tools to sanitize HTML and CSS. Thanks to the power of Zig and Lexbor, I built Zanitizer: a fast and lightweight sanitizer that parses the actual HTML and CSS ASTs natively.

No more JSDOM. Up to 15 times faster. Tested against 229 known OWASP/H5SC threats.

Available as a ~350kB WASM drop-in for Node/Browser or a 1.2MB standalone CLI.