Connecting Tech Pros Worldwide Help | Site Map

How to make xss safe strings

  #1  
Old August 21st, 2008, 04:15 AM
Roopesh
Guest
 
Posts: n/a
Hi,

How can I make a string XSS safe? Will
simply .replace('<','&lt;').replace('>','&gt;').... do the work? Or
are there some other issues to take into account?. Is there already a
function in python which will do this for me.

Regards
Roopesh
  #2  
Old August 21st, 2008, 05:05 AM
Dan Bishop
Guest
 
Posts: n/a

re: How to make xss safe strings


On Aug 20, 10:10*pm, Roopesh <roopesh....@gmail.comwrote:
Quote:
Hi,
>
How can I make a string XSS safe? Will
simply .replace('<','&lt;').replace('>','&gt;').... do the work? Or
are there some other issues to take into account?. Is there already a
function in python which will do this for me.
For HTML, use the cgi.escape function.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposal for Lite Encryption for Login Form without SSL klenwell answers 19 October 4th, 2007 06:05 PM