# Bleach — card for AI agents

Sanitizes HTML and prevents XSS attacks with a safelist-based approach.

Category: Scraping, browsers and parsing · PyPI package `bleach` · latest version 6.4.0 (checked 2026-11-01)
Install: `pip install bleach`
License: Apache Software License (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Warnings
- The repository is archived: no more updates.

## Numbers (AgentGid data)
- Gid Score: 63.3 (#782 of all tools, 23 of 141 in its category)
- Used in 14 public projects set up for AI coding agents (0.2%)
- Downloads last week: 17,112,236 (as of 2026-11-24), +7.6% over 4 weeks
- GitHub stars: 2,763 (as of 2026-11-24)
- Last push: 2026-06-05

## Often used with
NumPy 93.5%, attrs 93.2%, Beautiful Soup 90.8%, packaging 90.4%, Jinja2 90.1%, MarkupSafe 89.0%

## Links
- AgentGid page: https://agentgid.com/tools/bleach/
- Homepage: https://github.com/mozilla/bleach
- Repository: https://github.com/mozilla/bleach

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
