textproc/py-html-sanitizer 2.6.0 NetBSD
White-list based HTML sanitizer
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
65c9b1c391- License
- modified-bsd
- Categories
- textproc, converters, python
- Package size
- 26.6 KiB, 130.7 KiB installed
Description
html-sanitizer is a whitelist-based and very opinionated HTML sanitizer that can be used both for untrusted and trusted sources. It attempts to clean up the mess made by various rich text editors and or copy-pasting to make styling of webpages simpler and more consistent. It builds on the excellent HTML cleaner in lxml to make the result both valid and safe.
It goes further than pure tag filtering by transforming the HTML fragments to normalize formatting and drop redundant or pointless tags.
Install
Binary package:
pkgin install py312-html-sanitizer
From pkgsrc:
cd /usr/pkgsrc/textproc/py-html-sanitizer && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.6.0 |
| NetBSD 10.1 aarch64 | 2.6.0 |
| SmartOS / illumos x86_64 | 2.6.0 |
| macOS 15 arm64 | 2.6.0 |
Dependencies
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py313-html-sanitizer-2.6.0,py314-html-sanitizer-2.6.0