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-2.tar.gz
(6.1 kB
view details)
File details
Details for the file feincms-cleanse-2.tar.gz
.
File metadata
- Download URL: feincms-cleanse-2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e9a87dd2dd75a1a754462d873b048ed7ef079ef5eed766c1221cd6acede9e1f |
|
MD5 | 36774a0d02ffd137dc04c603e2be3f6f |
|
BLAKE2b-256 | a5e9edb3db0af3bdb525e61c674cea3da492b728638e583694da7786a0e333ee |