# 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: `py313-html-sanitizer-2.6.0`
- 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 textproc/py-lxml-html-clean lang/python313 lang/python313

## Binary packages

OS | Architecture | Version
--- | --- | ---
NetBSD 10.0 | aarch64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | aarch64eb | py310-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | aarch64eb | py311-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | aarch64eb | py312-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | aarch64eb | py313-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | alpha | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | alpha | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv6hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | earmv7hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | i386 | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | powerpc | py310-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | powerpc | py311-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | powerpc | py312-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | powerpc | py313-html-sanitizer-2.5.0.tgz
NetBSD 10.0 | powerpc | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | powerpc | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | powerpc | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | powerpc | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | sparc64 | py310-html-sanitizer-2.4.4.tgz
NetBSD 10.0 | sparc64 | py311-html-sanitizer-2.4.4.tgz
NetBSD 10.0 | sparc64 | py312-html-sanitizer-2.4.4.tgz
NetBSD 10.0 | sparc64 | py38-html-sanitizer-2.4.4.tgz
NetBSD 10.0 | sparc64 | py39-html-sanitizer-2.4.4.tgz
NetBSD 10.0 | x86_64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 10.0 | x86_64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | aarch64eb | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv6hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | earmv7hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | i386 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | powerpc | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | powerpc | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | powerpc | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | riscv64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 11.0 | x86_64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | aarch64 | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv6hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | earmv7hf | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | i386 | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | i386 | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | i386 | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | i386 | py314-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | powerpc | py310-html-sanitizer-2.5.0.tgz
NetBSD 9.0 | powerpc | py311-html-sanitizer-2.5.0.tgz
NetBSD 9.0 | powerpc | py312-html-sanitizer-2.5.0.tgz
NetBSD 9.0 | powerpc | py313-html-sanitizer-2.5.0.tgz
NetBSD 9.0 | x86_64 | py311-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | x86_64 | py312-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | x86_64 | py313-html-sanitizer-2.6.0.tgz
NetBSD 9.0 | x86_64 | py314-html-sanitizer-2.6.0.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.