apostrophecms / sanitize-htmlView on GitHub
Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
4,136Feb 26, 2026Updated last month

Alternatives and similar repositories for sanitize-html

Users that are interested in sanitize-html are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.

Sorting:

Are these results useful?