Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

l-monnier/feincms-cleanse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feincms-cleanse

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

About

Default HTML cleansing in FeinCMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%