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.

Release files for html-purifier 0.1.9

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-purifier 0.1.9
File Size Uploaded
html-purifier-0.1.9.zip 89.2 kB Details

Release files / html-purifier-0.1.9.zip

Download URL html-purifier-0.1.9.zip
Size 89.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2cfa964330dae8b3fbe0cb0c1c6118429e2f2872c041d64c4f8fd8b870346c97
BLAKE2b-256 checksum
How to use checksums
64580cceca92b545d96cc749af0fb2e3226bc6078ff5dbbd78abb466460bf276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.9 This release

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release 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