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-purifier-0.1.9.zip (89.2 kB view details)

Uploaded Source

File details

Details for the file html-purifier-0.1.9.zip.

File metadata

  • Download URL: html-purifier-0.1.9.zip
  • Upload date:
  • Size: 89.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for html-purifier-0.1.9.zip
Algorithm Hash digest
SHA256 2cfa964330dae8b3fbe0cb0c1c6118429e2f2872c041d64c4f8fd8b870346c97
MD5 71b6fe1c765aa7b2bc493043d08af1bf
BLAKE2b-256 64580cceca92b545d96cc749af0fb2e3226bc6078ff5dbbd78abb466460bf276

See more details on using hashes here.

Supported by

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