Click here to Skip to main content
15,900,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
haii.. i want to ask something,,

how to protect from injection using javascript,,example like a forum or blog post.

if someone post comment using javascript like this: <script>alert('boo!!')</script>

i have try to save comment using example HttpUtility.HtmlEncode(body);

and i show to listview, example HttpUtility.HtmlDecode(body);

somebody help me..??
Posted

Hi I am not know more about cross-site-scripting for javascript injection. but look at this link http://ha.ckers.org/xss.html

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900