Default HTML cleansing in FeinCMS
Project description
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>'
Project details
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 hashes)
Built Distribution
Close
Hashes for feincms_cleanse-7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eafc6f5045a1324a879cf32d2c416937f5108a00af94fbf96b98242c5cf2207d |
|
MD5 | 74ab4698882a00b601a3fa80bf449203 |
|
BLAKE2b-256 | 2dbdf3a70f25a5404a01239cb4fa8fecb4616722c24b68e74f4370f4607c215a |