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.

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.5.zip (88.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for html-purifier-0.1.5.zip
Algorithm Hash digest
SHA256 d147747b1be05c7c86e82ca2f837ea8a06bf1f9e25989610fcce18f754efebc2
MD5 a45a0704357094ba8974ad88e537b277
BLAKE2b-256 30f4522417621e83f8f3b18e6b0bf2ad47a81491c798002d5d14652e607d4a5b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

This release

0.1.5 This release

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

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