Search code examples
javascriptasp.netcross-site

Method to eliminate cross site scripts


My application has lot of cross site scripting vulnerablities. I need a common C# function so that will avoid\eliminate all the cross site scripts.


Solution

  • Server.HtmlEncode() will render them harmless.