Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html-purifier3-2.1.0.tar.gz (85.8 kB view details)

Uploaded Source

File details

Details for the file html-purifier3-2.1.0.tar.gz.

File metadata

File hashes

Hashes for html-purifier3-2.1.0.tar.gz
Algorithm Hash digest
SHA256 9e11ebf2460bf8b4989e2b8775d34ef75d27ce1016f46b79d1ac8bbf6528f6ed
MD5 6f457dd38bb5d694dd08aab4571d3104
BLAKE2b-256 d85ec96eb602f4a1a8f1a29b08701d3a2a50b9f67540b86473e46394cf083023

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page