| Port details on branch 2023Q3 |
- py-bleach Easy safelist-based HTML-sanitizing tool
- 6.3.0 www
=3 6.2.0Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2012-06-01 18:04:09
- Last Update: 2025-11-09 16:31:12
- Commit Hash: dbdd411
- People watching this port, also watch:: qtkeychain-qt5, py311-treq, py311-Automat, linux-c7-atk, py311-beautifulsoup
- Also Listed In: python
- License: APACHE20
- WWW:
- https://bleach.readthedocs.io/en/latest/
- https://github.com/mozilla/bleach
- 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.
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}bleach>0:www/py-bleach@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/www/py-bleach/ && make install clean
- To add the package, run one of these commands:
- pkg install www/py-bleach
- pkg install py311-bleach
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-bleach listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-bleach
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1762586896
SHA256 (bleach-6.3.0.tar.gz) = 6f3b91b1c0a02bb9a78b5a454c92506aa0fdf197e1d5e114d2e00c6f64306d22
SIZE (bleach-6.3.0.tar.gz) = 203533
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-setuptools>=0 : devel/py-setuptools@py311
- py311-wheel>=0 : devel/py-wheel@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- py311-pytest>=7,1 : devel/py-pytest@py311
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-webencodings>=0 : converters/py-webencodings@py311
- py311-tinycss2>=1.1.0<1.5 : textproc/py-tinycss2@py311
- python3.11 : lang/python311
- This port is required by:
- for Build
-
- deskutils/py-paperless-ngx
- devel/py-protobuf-compiler
-
Deleted ports which required this port:
- for Run
-
- deskutils/py-paperless-ngx
- devel/py-nbconvert
- devel/py-protobuf-compiler
- net-im/py-matrix-synapse
- www/py-calibreweb
- www/py-django-bleach
- www/py-django-post_office
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- ===> The following configuration options are available for py311-bleach-6.3.0:
CSS=on: CSS support
===> Use 'make config' to modify these settings
- Options name:
- www_py-bleach
- USES:
- cpe python shebangfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|