www/py-bleach 6.2.0_1 MidnightBSD
Easy safelist-based HTML-sanitizing tool
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- www, python
Description
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes.
Bleach can also linkify text safely, applying filters that Django's urlize filter cannot, and optionally setting rel attributes, even on links already in the text.
Bleach is intended for sanitizing text from untrusted sources. If you find yourself jumping through hoops to allow your site administrators to do lots of things, you're probably outside the use cases. Either trust those users, or don't.
Because it relies on html5lib, Bleach is as good as modern browsers at dealing with weird, quirky HTML fragments. And any of Bleach's methods will fix unbalanced or mis-nested tags.
In the other systems
The newest version among them is 6.4.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | www/py-bleach | 6.2.0_1 behind since 2026-07-08 | no data | - | [email protected] | - |
| FreeBSD | www/py-bleach | 6.4.0 newest | none known | - | [email protected] | 2026-07-08 |
| OpenBSD | www/py-bleach | 6.4.0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-10-14 |
| NetBSD | www/py-bleach | 6.4.0 newest | none known | - | [email protected] | - |
| DragonFly | www/py-bleach | 6.2.0 behind since 2026-07-08 | none known | - | [email protected] | - |
| HardenedBSD | www/py-bleach | 6.4.0 newest | no data | - | [email protected] | - |
| GhostBSD | www/py-bleach | 6.4.0 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}bleach
From mports:
cd /usr/mports/www/py-bleach && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bleach>0:www/py-bleach
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 1
${PYTHON_PKGNAMEPREFIX}webencodings>=0: converters/py-webencodings
Build dependencies 2
Run dependencies 1
Required by 1
Configuration
Options name: www_bleach
| Option | Default | Description |
|---|---|---|
| CSS | on | CSS support |
- USES
- cpe python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| bleach-6.2.0.tar.gz | 203083 | 123e894118b8a599fd80d3ec1a6d4cc7ce4e5882b1317a7e1ba69b56e95f991f |
Master sites 1
- PYPI