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.6.zip
(88.4 kB
view details)
File details
Details for the file html-purifier-0.1.6.zip.
File metadata
- Download URL: html-purifier-0.1.6.zip
- Upload date:
- Size: 88.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0807479747d2256377f71e65d57c99e9aaa75a3f5436b504d049485a28ea06e9
|
|
| MD5 |
e22799a1a17b59692a9191a5a9d12cda
|
|
| BLAKE2b-256 |
342b9f93ec2b676fde38df852f69ff997685f8ca96f27042e657727f752c79bc
|