Skip to main content

Default HTML cleansing in FeinCMS

Project description

https://travis-ci.org/feincms/feincms-cleanse.svg?branch=master

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-8.tar.gz (6.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for feincms-cleanse-8.tar.gz
Algorithm Hash digest
SHA256 0846b4cb4f668d60b79a8581bdd19cb7e81690a8c333bb3d3d0653e6a16bf635
MD5 241085f66c77e0cc89940316eabdeb20
BLAKE2b-256 3bd91f87797be45865b6375c4dcfb5841d9634c480e352f693c420192b5a5092

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