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

pkgtools/cwrappers

Runtime dependencies

www/py-beautifulsoup4 textproc/py-lxml devel/py-setuptools lang/python39 lang/python39

Binary packages

OSArchitectureVersion
NetBSD 8.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py27-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py36-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py37-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py38-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py39-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py27-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py36-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py37-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py38-html-sanitizer-1.6.4.tgz
NetBSD 8.0i386py39-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 8.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py39-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 8.0x86_64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0aarch64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0alphapy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv6hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0earmv7hfpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0i386py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0mips64ebpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0powerpcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparc64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy27-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy36-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy37-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy38-html-sanitizer-1.6.4.tgz
NetBSD 9.0sparcpy39-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py39-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py27-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py36-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py37-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py38-html-sanitizer-1.6.4.tgz
NetBSD 9.0x86_64py39-html-sanitizer-1.6.4.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.