www/py-bleach 6.4.0 FreeBSD
Easy safelist-based HTML-sanitizing tool
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
d92e0e1083- License
- APACHE20
- Categories
- www, python
- Package size
- 326.1 KiB, 2036.0 KiB installed
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
| System | Port | Version |
|---|---|---|
| FreeBSD | www/py-bleach | 6.4.0 |
| OpenBSD | www/py-bleach | 6.4.0 |
| NetBSD | www/py-bleach | 6.4.0 |
| DragonFly | www/py-bleach | 6.2.0 |
| MidnightBSD | www/py-bleach | 6.2.0_1 |
Install
Binary package:
pkg install py312-bleach
From the ports tree:
cd /usr/ports/www/py-bleach/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-bleach>0:www/py-bleach
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 6.4.0 | 6.4.0 | 5.0.1_1 | 6.2.0 | 6.4.0 |
| FreeBSD:14:quarterly | 6.4.0 | 6.4.0 | n/a | 6.2.0 | 6.4.0 |
| FreeBSD:15:latest | 6.4.0 | 6.4.0 | n/a | 6.2.0 | 6.2.0 |
| FreeBSD:15:quarterly | 6.4.0 | 6.4.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 6.4.0 | 6.4.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
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
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 9
Required by 59
- biology/py-hits
- deskutils/py-paperless-ngx
- devel/py-anywidget
- devel/py-ipydatawidgets
- devel/py-ipympl
- devel/py-ipyparallel
- devel/py-ipywidgets
- devel/py-jupyter
- devel/py-jupyter-collaboration
- devel/py-jupyter-kernel-gateway
- devel/py-jupyter-lsp
- devel/py-jupyter-rfb
- devel/py-jupyter-server
- devel/py-jupyter-server-fileid
- devel/py-jupyter-server-mathjax
- devel/py-jupyter-server-ydoc
- devel/py-jupyterlab
- devel/py-jupyterlab-lsp
- devel/py-jupyterlab-server
- devel/py-jupyterlab-widgets
- devel/py-jupyterlab_launcher
- devel/py-nbclassic
- devel/py-nbconvert
- devel/py-nbdime
- devel/py-notebook-shim
- devel/py-protobuf-compiler
- devel/py-pytest-jupyter
- graphics/py-agx-emulsion
- graphics/py-olmocr
- graphics/py-pydeck
- math/mathicsscript
- math/py-mathics
- math/py-pyodesys
- misc/py-ipyfastscape
- misc/py-napari
- misc/py-pyviz-comms
- net-im/py-matrix-synapse
- science/agrum
- science/meep
- science/psi4
- science/py-HofstadterTools
- science/py-chempy
- science/py-ipygany
- science/py-jupyter_jsmol
- science/py-nglview
- science/py-optking
- science/py-pyqubo
- science/py-qcelemental
- science/py-qcengine
- science/py-qcmanybody
- textproc/py-jupyter_sphinx
- textproc/py-nbsphinx
- textproc/quarto
- www/py-nicegui
- www/py-nicegui-highcharts
- www/py-nicegui-nogui
- www/py-nikola
- www/py-notebook
- x11-toolkits/py-magicgui
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.4.0.tar.gz | 204857 | 4202482733d85cedd04e59fcb2f89f4e4c7c385a78d3c3c23c30446843a37452 |
Master sites 1
- PYPI