bleach
Easy, whitelist-based HTML-sanitizing tool
Easy, whitelist-based HTML-sanitizing tool
To install this package, run one of the following:
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes.
Summary
Easy, whitelist-based HTML-sanitizing tool
Last Updated
Nov 19, 2025 at 22:06
License
Apache-2.0 AND MIT
Total Downloads
24.8M
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/mozilla/bleachDocumentation
https://bleach.readthedocs.io/