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.3.zip
(87.8 kB
view details)
File details
Details for the file html-purifier-0.1.3.zip.
File metadata
- Download URL: html-purifier-0.1.3.zip
- Upload date:
- Size: 87.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24b8dd3cc756218d9ab1308039e827c5804cbd11a4cdbcec8793836b44592888
|
|
| MD5 |
25a2dc79c59e39b22c7ea92c3c247900
|
|
| BLAKE2b-256 |
7e2300303c1a2997d185e83b838c3e1f44ca17c5e1ca70af6384d11ab18589d5
|