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-5.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for feincms_cleanse-5-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fbaebc0b31bf6feecb40a282be054c8fb19eec4a7b214109218f5d8268f0a5d |
|
MD5 | 636846f45a4c87011db0b5d5158f2fb5 |
|
BLAKE2b-256 | 295b0f1f708ebc195c59ddbd093ce9210c82b9d048ed919d96329056b20d6abe |