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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for feincms-cleanse-3.tar.gz
Algorithm Hash digest
SHA256 69111d5a9a8227c12c06d6343a906fd128c9420c3f08b6c4c7fec993243cf9c8
MD5 78126589623fb36ba23e406cef69b50f
BLAKE2b-256 cccd8d4869a209e9c22ea217142c551d62f3992b93adeea47a3bb43b660d95ea

See more details on using hashes here.

Supported by

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