Bleach
JSON →Bleach is an allowed-list-based HTML sanitizing library for Python (current version 6.3.0) that escapes or strips markup and attributes based on a configurable safelist. It also provides functionality to safely linkify text, including setting `rel` attributes. Designed for sanitizing text from untrusted sources, Bleach is built upon html5lib, making it robust against malformed HTML fragments. Note that the project was deprecated in January 2023, citing upstream dependency `html5lib`'s lack of active maintenance, and is now in a minimum-maintenance mode, with new projects discouraged.
Traffic · last 30 days ↑80% vs prev 7d
total hits 26
actors 6 distinct systems
last hit 21h ago GPTBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · VN
API endpoints
full doc /v1/registry/bleach
install /v1/registry/bleach/install
compatibility /v1/registry/bleach/compatibility