Skip to main content

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 details)

Uploaded Source

Built Distribution

feincms_cleanse-7-py2-none-any.whl (7.0 kB view details)

Uploaded Python 2

File details

Details for the file feincms-cleanse-7.tar.gz.

File metadata

  • Download URL: feincms-cleanse-7.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for feincms-cleanse-7.tar.gz
Algorithm Hash digest
SHA256 a74fc7f2e1ebbd714b0ac85259a8dc16be007cbee7b5230a7e1cf311bc1609ba
MD5 4aa898c1c5d3c5b9030d3926f4a1e04a
BLAKE2b-256 d0b06b770309ce6f343c358803f9be587ecdbd8ad85bc46a1777b2e7f2da01ac

See more details on using hashes here.

File details

Details for the file feincms_cleanse-7-py2-none-any.whl.

File metadata

File hashes

Hashes for feincms_cleanse-7-py2-none-any.whl
Algorithm Hash digest
SHA256 eafc6f5045a1324a879cf32d2c416937f5108a00af94fbf96b98242c5cf2207d
MD5 74ab4698882a00b601a3fa80bf449203
BLAKE2b-256 2dbdf3a70f25a5404a01239cb4fa8fecb4616722c24b68e74f4370f4607c215a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page