# textproc/py-html-sanitizer - The NetBSD Packages Collection

White-list based HTML sanitizer

    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.

- Source version: `py311-html-sanitizer-2.3.1`
- Maintainer: pkgsrc-users AT NetBSD.org
- Website: https://github.com/matthiask/html-sanitizer
- License: modified-bsd
- Package history: cvs, hg, git

## Build dependencies

devel/py-hatchling devel/py-build misc/py-installer pkgtools/mktools pkgtools/cwrappers

## Runtime dependencies

www/py-beautifulsoup4 textproc/py-lxml lang/python311 lang/python311

## Binary packages

OS | Architecture | Version
--- | --- | ---
NetBSD 10.0 | aarch64 | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64 | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64 | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64 | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64 | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64eb | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64eb | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64eb | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64eb | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | aarch64eb | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64eb | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64eb | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64eb | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | aarch64eb | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | alpha | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | alpha | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | alpha | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | alpha | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | alpha | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv6hf | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv6hf | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv6hf | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv6hf | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv6hf | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv6hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv6hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv7hf | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv7hf | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv7hf | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv7hf | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | earmv7hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | earmv7hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | i386 | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | i386 | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | i386 | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | i386 | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | i386 | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | i386 | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | i386 | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | i386 | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | i386 | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | i386 | py310-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | i386 | py311-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | i386 | py312-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | i386 | py38-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | i386 | py39-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | powerpc | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | powerpc | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | powerpc | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | powerpc | py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0 | sparc | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | sparc | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | sparc | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | sparc | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | sparc | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | x86_64 | py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | x86_64 | py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | x86_64 | py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | x86_64 | py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | x86_64 | py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0 | x86_64 | py310-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | x86_64 | py311-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | x86_64 | py312-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | x86_64 | py38-html-sanitizer-2.3.1.tgz
NetBSD 10.0 | x86_64 | py39-html-sanitizer-2.3.1.tgz
NetBSD 10.0_BETA | x86_64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0_BETA | x86_64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0_BETA | x86_64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0_BETA | x86_64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | i386 | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py310-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | powerpc | py311-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | powerpc | py312-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | powerpc | py38-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | powerpc | py39-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | powerpc | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | powerpc | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0 | x86_64 | py310-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | x86_64 | py311-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | x86_64 | py312-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | x86_64 | py38-html-sanitizer-2.2.0.tgz
NetBSD 8.0 | x86_64 | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | aarch64 | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | aarch64 | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | aarch64 | py312-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | aarch64 | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | aarch64 | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | aarch64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | aarch64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | alpha | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | alpha | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | alpha | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | alpha | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | alpha | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | alpha | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | alpha | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | alpha | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv6hf | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv6hf | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv6hf | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv6hf | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv6hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv6hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv7hf | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv7hf | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv7hf | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | earmv7hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | earmv7hf | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | i386 | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | i386 | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | i386 | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | i386 | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | i386 | py310-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | i386 | py311-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | i386 | py38-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | i386 | py39-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | i386 | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | i386 | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | i386 | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | i386 | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | mips64eb | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | mips64eb | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | mips64eb | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | mips64eb | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | powerpc | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | powerpc | py312-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | powerpc | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | powerpc | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | powerpc | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | powerpc | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | sparc | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | x86_64 | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | x86_64 | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | x86_64 | py312-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | x86_64 | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | x86_64 | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0 | x86_64 | py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | x86_64 | py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | x86_64 | py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | x86_64 | py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0 | x86_64 | py310-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | x86_64 | py311-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | x86_64 | py312-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | x86_64 | py38-html-sanitizer-2.3.1.tgz
NetBSD 9.0 | x86_64 | py39-html-sanitizer-2.3.1.tgz
NetBSD 9.3 | x86_64 | py310-html-sanitizer-2.2.0.tgz
NetBSD 9.3 | x86_64 | py311-html-sanitizer-2.2.0.tgz
NetBSD 9.3 | x86_64 | py312-html-sanitizer-2.2.0.tgz
NetBSD 9.3 | x86_64 | py38-html-sanitizer-2.2.0.tgz
NetBSD 9.3 | x86_64 | py39-html-sanitizer-2.2.0.tgz
NetBSD 9.3 | x86_64 | py310-html-sanitizer-2.3.1.tgz
NetBSD 9.3 | x86_64 | py311-html-sanitizer-2.3.1.tgz
NetBSD 9.3 | x86_64 | py312-html-sanitizer-2.3.1.tgz
NetBSD 9.3 | x86_64 | py38-html-sanitizer-2.3.1.tgz
NetBSD 9.3 | x86_64 | py39-html-sanitizer-2.3.1.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

## Available build options

(none)

## Known vulnerabilities

(no vulnerabilities known)

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.