Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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>'

Release history Release notifications

This version
History Node

8

History Node

7

History Node

6

History Node

5

History Node

3

History Node

2

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
feincms-cleanse-8.tar.gz (6.0 kB) Copy SHA256 hash SHA256 Source None Jun 16, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page