Preparing for system design interviews?  Try bugzed.com →

HTML Sanitizer

JSON →
library 2.6.0 ·python
verified Jun 28, 2026

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.

total hits 22
actors 6 distinct systems
last hit 5d ago Bingbot
GPTBot
4
Script
1
ByteDance
1
ChatGPT-User
1
Search engines
7
Humans
5

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇨🇭 Switzerland · 🇩🇪 Germany · 🇬🇧 United Kingdom