开发者

best python lib to make the textarea safe in the web page when user submit

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

so what开发者_JS百科 python lib you are using to do this .

thanks


BeautifulSoup

This function should work for you:

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜