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.

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

OSArchitectureVersion
NetBSD 10.0aarch64py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64ebpy310-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64ebpy311-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64ebpy38-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64ebpy39-html-sanitizer-1.9.3.tgz
NetBSD 10.0aarch64ebpy310-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64ebpy311-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64ebpy312-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64ebpy38-html-sanitizer-2.2.0.tgz
NetBSD 10.0aarch64ebpy39-html-sanitizer-2.2.0.tgz
NetBSD 10.0alphapy310-html-sanitizer-2.2.0.tgz
NetBSD 10.0alphapy311-html-sanitizer-2.2.0.tgz
NetBSD 10.0alphapy312-html-sanitizer-2.2.0.tgz
NetBSD 10.0alphapy38-html-sanitizer-2.2.0.tgz
NetBSD 10.0alphapy39-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv6hfpy310-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv6hfpy311-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv6hfpy312-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv6hfpy38-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv6hfpy39-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv6hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv6hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy310-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv7hfpy311-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv7hfpy312-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv7hfpy38-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv7hfpy39-html-sanitizer-2.2.0.tgz
NetBSD 10.0earmv7hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 10.0earmv7hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 10.0i386py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0i386py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0i386py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0i386py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0i386py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0i386py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0i386py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0i386py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0i386py39-html-sanitizer-1.9.3.tgz
NetBSD 10.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 10.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 10.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 10.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 10.0sparcpy310-html-sanitizer-2.2.0.tgz
NetBSD 10.0sparcpy311-html-sanitizer-2.2.0.tgz
NetBSD 10.0sparcpy312-html-sanitizer-2.2.0.tgz
NetBSD 10.0sparcpy38-html-sanitizer-2.2.0.tgz
NetBSD 10.0sparcpy39-html-sanitizer-2.2.0.tgz
NetBSD 10.0x86_64py310-html-sanitizer-2.2.0.tgz
NetBSD 10.0x86_64py311-html-sanitizer-2.2.0.tgz
NetBSD 10.0x86_64py312-html-sanitizer-2.2.0.tgz
NetBSD 10.0x86_64py38-html-sanitizer-2.2.0.tgz
NetBSD 10.0x86_64py39-html-sanitizer-2.2.0.tgz
NetBSD 10.0_BETAx86_64py310-html-sanitizer-1.9.3.tgz
NetBSD 10.0_BETAx86_64py311-html-sanitizer-1.9.3.tgz
NetBSD 10.0_BETAx86_64py38-html-sanitizer-1.9.3.tgz
NetBSD 10.0_BETAx86_64py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0i386py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy310-html-sanitizer-2.2.0.tgz
NetBSD 8.0powerpcpy311-html-sanitizer-2.2.0.tgz
NetBSD 8.0powerpcpy312-html-sanitizer-2.2.0.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-2.2.0.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-2.2.0.tgz
NetBSD 8.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py310-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py311-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py38-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py39-html-sanitizer-1.9.3.tgz
NetBSD 8.0x86_64py310-html-sanitizer-2.2.0.tgz
NetBSD 8.0x86_64py311-html-sanitizer-2.2.0.tgz
NetBSD 8.0x86_64py312-html-sanitizer-2.2.0.tgz
NetBSD 8.0x86_64py38-html-sanitizer-2.2.0.tgz
NetBSD 8.0x86_64py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0aarch64py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0aarch64py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0aarch64py312-html-sanitizer-2.2.0.tgz
NetBSD 9.0aarch64py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0aarch64py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0aarch64py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0aarch64py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0alphapy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0alphapy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0alphapy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0alphapy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0alphapy310-html-sanitizer-2.2.0.tgz
NetBSD 9.0alphapy311-html-sanitizer-2.2.0.tgz
NetBSD 9.0alphapy38-html-sanitizer-2.2.0.tgz
NetBSD 9.0alphapy39-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv6hfpy310-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv6hfpy311-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv6hfpy38-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv6hfpy39-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv6hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv6hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy310-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv7hfpy311-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-2.2.0.tgz
NetBSD 9.0earmv7hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0i386py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0i386py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0i386py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0i386py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0i386py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0i386py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0i386py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0i386py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0mips64ebpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0mips64ebpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0mips64ebpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0mips64ebpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0powerpcpy310-html-sanitizer-2.2.0.tgz
NetBSD 9.0powerpcpy311-html-sanitizer-2.2.0.tgz
NetBSD 9.0powerpcpy312-html-sanitizer-2.2.0.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-2.2.0.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-2.2.0.tgz
NetBSD 9.0sparc64py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparc64py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparc64py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparc64py39-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy310-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy311-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy38-html-sanitizer-1.9.3.tgz
NetBSD 9.0sparcpy39-html-sanitizer-1.9.3.tgz
NetBSD 9.0x86_64py310-html-sanitizer-2.2.0.tgz
NetBSD 9.0x86_64py311-html-sanitizer-2.2.0.tgz
NetBSD 9.0x86_64py312-html-sanitizer-2.2.0.tgz
NetBSD 9.0x86_64py38-html-sanitizer-2.2.0.tgz
NetBSD 9.0x86_64py39-html-sanitizer-2.2.0.tgz
NetBSD 9.0x86_64py310-html-sanitizer-1.9.3.tgz
NetBSD 9.0x86_64py311-html-sanitizer-1.9.3.tgz
NetBSD 9.0x86_64py38-html-sanitizer-1.9.3.tgz
NetBSD 9.0x86_64py39-html-sanitizer-1.9.3.tgz
NetBSD 9.3x86_64py310-html-sanitizer-1.9.3.tgz
NetBSD 9.3x86_64py311-html-sanitizer-1.9.3.tgz
NetBSD 9.3x86_64py38-html-sanitizer-1.9.3.tgz
NetBSD 9.3x86_64py39-html-sanitizer-1.9.3.tgz
NetBSD 9.3x86_64py310-html-sanitizer-2.2.0.tgz
NetBSD 9.3x86_64py311-html-sanitizer-2.2.0.tgz
NetBSD 9.3x86_64py312-html-sanitizer-2.2.0.tgz
NetBSD 9.3x86_64py38-html-sanitizer-2.2.0.tgz
NetBSD 9.3x86_64py39-html-sanitizer-2.2.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

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.