This is the FeinCMS HTML cleansing function which lived under the name of feincms.utils.html.cleanse.cleanse_html, and has been moved to its own repository now to be usable in other projects, and to not set a precedent for a particular HTML cleaning technique in FeinCMS anymore.
Usage is simple:
from feincms_cleanse import cleanse_html >>> cleanse_html(u'<span style="font-weight:bold">some text</span>') u'<strong>some text</strong>'
Release files for feincms-cleanse 3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| feincms-cleanse-3.tar.gz | 6.1 kB | Details |
Release files / feincms-cleanse-3.tar.gz
| Download URL | feincms-cleanse-3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69111d5a9a8227c12c06d6343a906fd128c9420c3f08b6c4c7fec993243cf9c8
|
|
BLAKE2b-256 checksum How to use checksums |
cccd8d4869a209e9c22ea217142c551d62f3992b93adeea47a3bb43b660d95ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |