This has been out for a while, however I just tried to reference it and forgot where it was located. Microsoft should really make accessing this a lot easier – would have been nice for it to appear in the Add Reference dialog. Anyway, its located at:
C:Program FilesMicrosoft CorporationAnti-Cross Site Scripting Library V1.5Library.Net 2.0AntiXssLibrary.dll
Then its
using Microsoft.Security.Application;
string pageTitle = AntiXss.HtmlEncode(Request.QueryString[“Page”]);
Remember: Always HtmlEncode untrusted text.
Download it from
Good Post!!
Useful!
Thanks,