views:

53

answers:

2

i want to clean some tag like : <script> and other,

so what python lib you are using to do this .

thanks

A: 

You can try Web2py , it is a webframework for python with support for Wiki Markup , MarkDown , and many things + Server side Validation , XSS Prevention. If you want to use only it's Lib you can use gluon of web2py (which is lib of web2py framework)

www.web2py.com

V3ss0n
A: 

BeautifulSoup

This function should work for you:

http://djangosnippets.org/snippets/1655/

zalew