HTML Sanitizer
JSON →This is an allowlist-based and very opinionated HTML sanitizer for Python, designed to clean up HTML fragments from untrusted or trusted sources. It's built upon `lxml` to ensure valid and safe HTML output. Beyond basic tag and attribute allowlisting, it applies additional transforms to normalize and simplify HTML content, aiming for consistency, especially from rich text editors. It's actively maintained.
Traffic · last 30 days ↑450% vs prev 7d
total hits 22
actors 6 distinct systems
last hit 5d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇨🇭 Switzerland · 🇩🇪 Germany · 🇬🇧 United Kingdom
API endpoints
full doc /v1/registry/html-sanitizer
compatibility /v1/registry/html-sanitizer/compatibility