insane - Lean and configurable whitelist-oriented HTML sanitizer
insane is a lean and configurable whitelist-oriented HTML sanitizer. It works well in browsers, as its footprint size is very small (around ~2kb gzipped). API inspired by sanitize-html (which is around 100kb gzipped).Contrary to similar sanitizers, insane drops the whole tree of descendants for elements that aren't allowed tags.
https://github.com/bevacqua/insane
https://ponyfoo.com/
License:
Tech:
Tags: