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>'
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
feincms-cleanse-7.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feincms-cleanse-7.tar.gz.
File metadata
- Download URL: feincms-cleanse-7.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a74fc7f2e1ebbd714b0ac85259a8dc16be007cbee7b5230a7e1cf311bc1609ba
|
|
| MD5 |
4aa898c1c5d3c5b9030d3926f4a1e04a
|
|
| BLAKE2b-256 |
d0b06b770309ce6f343c358803f9be587ecdbd8ad85bc46a1777b2e7f2da01ac
|
File details
Details for the file feincms_cleanse-7-py2-none-any.whl.
File metadata
- Download URL: feincms_cleanse-7-py2-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eafc6f5045a1324a879cf32d2c416937f5108a00af94fbf96b98242c5cf2207d
|
|
| MD5 |
74ab4698882a00b601a3fa80bf449203
|
|
| BLAKE2b-256 |
2dbdf3a70f25a5404a01239cb4fa8fecb4616722c24b68e74f4370f4607c215a
|