nh3 HTML Sanitizer

JSON →
library 0.3.4 ·python
verified Jun 9, 2026 install

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.

total hits 32
actors 7 distinct systems
last hit 2d ago human
ChatGPT-User
5
Amazonbot
4
ByteDance
4
MetaBot
4
Script
2
Search engines
1
Humans
9

top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇩🇪 Germany