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 8
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-8.tar.gz | 6.0 kB | Details |
Release files / feincms-cleanse-8.tar.gz
| Download URL | feincms-cleanse-8.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0846b4cb4f668d60b79a8581bdd19cb7e81690a8c333bb3d3d0653e6a16bf635
|
|
BLAKE2b-256 checksum How to use checksums |
3bd91f87797be45865b6375c4dcfb5841d9634c480e352f693c420192b5a5092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |