# Bleach

Python library that sanitizes HTML by escaping or stripping markup and attributes that are not on an allowed list.


Source: https://findsoftware.frbit.cloud/bleach/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- repository: https://github.com/mozilla/bleach
- docs: https://bleach.readthedocs.io/en/latest/

### Identity

- status: discontinued
- maintainer: Mozilla Foundation
- maintainerType: foundation
- parent: unknown
- firstRelease: 2010
- hqCountry: unknown

### Kind

- category: library
- hosting: python
- language: python
- runtime: python
- runtimeMin: python 3.10
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: pip (PyPI)

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 6
- latestReleaseDate: 2026-06-05

### Adoption

- githubStargazers: 2764
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 66
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 75321
- dependentPackages: 509

### Sources

- status: https://github.com/mozilla/bleach/blob/main/README.rst (read 2026-11-04)
- status: https://api.github.com/repos/mozilla/bleach (read 2026-11-04)
- urls: https://api.github.com/repos/mozilla/bleach (read 2026-11-04)
- urls: https://bleach.readthedocs.io/en/latest/ (read 2026-11-04)
- firstRelease: https://pypi.org/pypi/bleach/json (read 2026-11-04)
- maintainer: https://github.com/mozilla/bleach/blob/main/LICENSE (read 2026-11-04)
- maintainerType: https://github.com/mozilla/bleach/blob/main/LICENSE (read 2026-11-04)
- category: https://api.github.com/repos/mozilla/bleach (read 2026-11-04)
- language: https://api.github.com/repos/mozilla/bleach (read 2026-11-04)
- runtime: https://pypi.org/pypi/bleach/json (read 2026-11-04)
- runtimeMin: https://pypi.org/pypi/bleach/json (read 2026-11-04)
- installMethod: https://github.com/mozilla/bleach/blob/main/README.rst (read 2026-11-04)
- license: https://github.com/mozilla/bleach/blob/main/LICENSE (read 2026-11-04)
- licenseModel: https://github.com/mozilla/bleach/blob/main/LICENSE (read 2026-11-04)
- currentMajor: https://pypi.org/pypi/bleach/json (read 2026-11-04)
- latestReleaseDate: https://pypi.org/pypi/bleach/json (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/mozilla/bleach (read 2026-11-04)
- contributors: https://api.github.com/repos/mozilla/bleach/contributors?per_page=1 (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/bleach (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/bleach (read 2026-11-04)

## Notes

Bleach is a Python library that sanitizes HTML. It escapes or strips markup and attributes that are not on an allowed list, so untrusted HTML can be cleaned before it is used. It is installed from PyPI with pip.

The Mozilla Foundation holds the copyright on the code under the Apache License 2.0. The [documentation](https://bleach.readthedocs.io/en/latest/) carries the project's end-of-maintenance note.

## Worth knowing

The maintainer has ended the project. The README says Bleach is no longer maintained and will not get future releases, and the GitHub repository is archived.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
