nh3 HTML Sanitizer
JSON →nh3 is a Python binding to the Ammonia HTML sanitizer Rust crate, providing fast and configurable whitelist-based HTML sanitization. It is notably faster than pure-Python alternatives like `Bleach`, which it largely replaces since `html5lib` became unmaintained. The library is actively maintained, with its current version 0.3.4, and receives regular updates to both the Python bindings and its underlying Rust components.
Traffic · last 30 days ↑88% vs prev 7d
total hits 42
actors 9 distinct systems
last hit 1h ago ClaudeBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇨🇳 China
API endpoints
full doc /v1/registry/nh3
install /v1/registry/nh3/install
compatibility /v1/registry/nh3/compatibility