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-5.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-5.tar.gz.
File metadata
- Download URL: feincms-cleanse-5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1551f32b8720826c621fec6f4d5fce9513efddd5543ac8903b1e28d55916c94b
|
|
| MD5 |
7862927d3ef2f8ceb772e76c05469a4a
|
|
| BLAKE2b-256 |
cefb484a29c3d43b00fa95943f474b4d87413f605b3e0fcba378e130703d01e0
|
File details
Details for the file feincms_cleanse-5-py27-none-any.whl.
File metadata
- Download URL: feincms_cleanse-5-py27-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2.7
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fbaebc0b31bf6feecb40a282be054c8fb19eec4a7b214109218f5d8268f0a5d
|
|
| MD5 |
636846f45a4c87011db0b5d5158f2fb5
|
|
| BLAKE2b-256 |
295b0f1f708ebc195c59ddbd093ce9210c82b9d048ed919d96329056b20d6abe
|