Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Bleach

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

Scraping, browsers and parsingPYPI

GitHubWebsite

1. License

License from PyPI license field.

github.com/mozilla/bleach

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Bleach does

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

Bleach popularity

63 / 100
Gid Score, #782 overall
17.1M
downloads a week, pypi
2,763
GitHub stars
14
agent projects use it
Bleach: downloads per weekPyPI, bleach 17,047,010
Bleach: GitHub starsmozilla/bleach 2,763

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Bleach is used

  • Bleach is a dependency in 14 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 292 projects, and what it is used with below comes from all of them.
  • Projects that use it most often also use NumPy (93.5%), attrs (93.2%), Beautiful Soup (90.8%).

By coding agent

10 projects, 0.3%
7 projects, 0.2%

Often used with

In 93.5% of its projects
In 93.2% of its projects
In 90.8% of its projects
In 90.4% of its projects
In 90.1% of its projects
In 89.0% of its projects
In 88.7% of its projects
In 88.0% of its projects

More about Bleach

More in Scraping, browsers and parsing

Alternatives

Bleach This page

Apache Software LicenseGid 6317.1M/wk

Compare Bleach with another tool

Get started

Install it.

pip install bleach

No step-by-step start for Bleach yet: we have not written its hand-checked card.