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-purifier3-2.1.0.tar.gz
(85.8 kB
view details)
File details
Details for the file html-purifier3-2.1.0.tar.gz.
File metadata
- Download URL: html-purifier3-2.1.0.tar.gz
- Upload date:
- Size: 85.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e11ebf2460bf8b4989e2b8775d34ef75d27ce1016f46b79d1ac8bbf6528f6ed
|
|
| MD5 |
6f457dd38bb5d694dd08aab4571d3104
|
|
| BLAKE2b-256 |
d85ec96eb602f4a1a8f1a29b08701d3a2a50b9f67540b86473e46394cf083023
|