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>'
Release files for feincms-cleanse 6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| feincms-cleanse-6.tar.gz | 5.9 kB | Details |
Release files / feincms-cleanse-6.tar.gz
| Download URL | feincms-cleanse-6.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b308f5dccdbf6ce31570a1ca4318563dd162a6797345478db2cdeff9d55a01ee
|
|
BLAKE2b-256 checksum How to use checksums |
dba0e361494ea1e2a81aa0557109263b55667d51031588d50a8e4ded4f8e8ea6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |