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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| html-purifier-0.1.9.zip | 89.2 kB | Without provenance | Details for html-purifier-0.1.9.zip |
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 |
Security for html-purifier 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.