Page 1 of 1

javascript function for escaping the special characters

Posted: Wed Oct 31, 2007 12:47 am
by qumar
hi friends,
i need a javascript function for escaping the special characters like single quot, double quot.
give some idea. please help to me.
thanks,
qumar.

Choose the Right Board

Posted: Wed Oct 31, 2007 12:53 am
by s.dot
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.

Posted: Wed Oct 31, 2007 12:55 am
by s.dot
encodeURIComponent() for passing through ajax or similar
maybe escape() ?

Posted: Thu Nov 01, 2007 1:32 am
by alex.barylski
So does anyone have any arguments as to using this approach in securing at least URI style XSS exploits???

Is using javascript during onLoad() an acceptable measure in preventing XSS of this type???

Posted: Fri Nov 02, 2007 6:04 am
by alex.barylski
So I can assume this is safe practice in preventing XSS? :D