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.9.zip
(89.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cfa964330dae8b3fbe0cb0c1c6118429e2f2872c041d64c4f8fd8b870346c97
|
|
| MD5 |
71b6fe1c765aa7b2bc493043d08af1bf
|
|
| BLAKE2b-256 |
64580cceca92b545d96cc749af0fb2e3226bc6078ff5dbbd78abb466460bf276
|