Letractively / kay-framework

Automatically exported from code.google.com/p/kay-framework
Other
0 stars 0 forks source link

Proposal: New extension for sanitizing #116

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm planning to add in Kay a new extension to support sanitizing html input.
For this type of tasks we're using and battle-tested the "bleach" library ( 
http://pypi.python.org/pypi/bleach ) that depends on html5lib.
It's very useful and customizable to handle text submitted in forms or API. It 
not only strip tags but can also clean them.

At first I was thinking to include it in the kay.ext namespace and let devels 
use it directly but we could also include it in the main lib (or utils) and 
provide an HTMLField type in the form module and allowing to pass parameters to 
sanitize the HTML content.

I think this could be an elegant solution for Kay, what do you think?

Paolo

Original issue reported on code.google.com by paolo.ca...@gmail.com on 12 Jan 2012 at 11:51

GoogleCodeExporter commented 8 years ago
postponed

Original comment by paolo.ca...@gmail.com on 28 Jan 2012 at 12:12

GoogleCodeExporter commented 8 years ago

Original comment by paolo.ca...@gmail.com on 28 Jan 2012 at 12:12

GoogleCodeExporter commented 8 years ago

Original comment by paolo.ca...@gmail.com on 4 Mar 2012 at 10:12

GoogleCodeExporter commented 8 years ago

Original comment by paolo.ca...@gmail.com on 13 Jul 2012 at 4:17