The Principal Dev – Masterclass for Tech Leads

The Principal Dev – Masterclass for Tech Leads28-29 May

Join

New TypeScript HTML Sanitizers 2026

GitHub Libraries TypeScript HTML Sanitizers

apostrophecms/sanitize-html 4K +6

added 11 months ago

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance

cure53/dompurify 16K +50

added 11 months ago

DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks.

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.