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

Uploaded Source

Built Distribution

feincms_cleanse-5-py27-none-any.whl (6.9 kB view details)

Uploaded Python 2.7

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

Hashes for feincms-cleanse-5.tar.gz
Algorithm Hash digest
SHA256 1551f32b8720826c621fec6f4d5fce9513efddd5543ac8903b1e28d55916c94b
MD5 7862927d3ef2f8ceb772e76c05469a4a
BLAKE2b-256 cefb484a29c3d43b00fa95943f474b4d87413f605b3e0fcba378e130703d01e0

See more details on using hashes here.

File details

Details for the file feincms_cleanse-5-py27-none-any.whl.

File metadata

File hashes

Hashes for feincms_cleanse-5-py27-none-any.whl
Algorithm Hash digest
SHA256 9fbaebc0b31bf6feecb40a282be054c8fb19eec4a7b214109218f5d8268f0a5d
MD5 636846f45a4c87011db0b5d5158f2fb5
BLAKE2b-256 295b0f1f708ebc195c59ddbd093ce9210c82b9d048ed919d96329056b20d6abe

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