BSD Ports

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

SystemPortVersion
FreeBSDwww/py-bleach6.4.0
OpenBSDwww/py-bleach6.4.0
NetBSDwww/py-bleach6.4.0
DragonFlywww/py-bleach6.2.0
MidnightBSDwww/py-bleach6.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest6.4.06.4.05.0.1_16.2.06.4.0
FreeBSD:14:quarterly6.4.06.4.0n/a6.2.06.4.0
FreeBSD:15:latest6.4.06.4.0n/a6.2.06.2.0
FreeBSD:15:quarterly6.4.06.4.0n/an/an/a
FreeBSD:16:latest6.4.06.4.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 9

Configuration

Options name: www_bleach

OptionDefaultDescription
CSSonCSS support
USES
cpe python shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
bleach-6.4.0.tar.gz2048574202482733d85cedd04e59fcb2f89f4e4c7c385a78d3c3c23c30446843a37452
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
d92e0e1083 Po-Chuan Hsieh www/py-bleach: Update to 6.4.0
Changes: https://github.com/mozilla/bleach/blob/main/CHANGES https://bleach.readthedocs.io/en/latest/changes.html