开发者

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

开发者 https://www.devze.com 2023-01-05 21:29 出处:网络
i want to clean some tag like : <script> and other, so what开发者_JS百科 python lib you areusing to do this .

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

精彩评论

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

关注公众号