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 42
actors 9 distinct systems
last hit 1h ago ClaudeBot
ChatGPT-User
6
GPTBot
4
Amazonbot
4
ByteDance
4
MetaBot
4
Script
2
ClaudeBot
1
Search engines
3
Humans
11

top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇨🇳 China