Skip to main content

Cuts the tags and attributes from HTML that are not in the whitelist. Their content is leaves.

You can use the symbol * to allow all tags and/or attributes.

Note that the script and style tags are removed with content.

The module is based on HTMLParser Class - in the standard Python package. No need to pull a dependence, what is also sometimes can be a plus.

Metadata

Release files for html-purifier3 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for html-purifier3 2.1.0
File Size Uploaded Provenance Actions
html-purifier3-2.1.0.tar.gz 85.8 kB Without provenance Details for html-purifier3-2.1.0.tar.gz

Release files / html-purifier3-2.1.0.tar.gz

Download URL html-purifier3-2.1.0.tar.gz
Size 85.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9e11ebf2460bf8b4989e2b8775d34ef75d27ce1016f46b79d1ac8bbf6528f6ed
BLAKE2b-256 checksum
How to use checksums
d85ec96eb602f4a1a8f1a29b08701d3a2a50b9f67540b86473e46394cf083023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for html-purifier3 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page