Homepage | About Me | Mayday | Testing ASP.net Book | Follow me on Twitter | GitHub | SlideShare | RSS | DropBox referral link
Blog.BenHall.me.uk

Using Microsoft AntiXSS 1.5

Wednesday, May 30, 2007

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 Files\Microsoft Corporation\Anti-Cross Site Scripting Library V1.5\Library\.Net 2.0\AntiXssLibrary.dll

Then its

using Microsoft.Security.Application;

string pageTitle = AntiXss.HtmlEncode(Request.QueryString["Page"]);

Remember: Always HtmlEncode untrusted text.

Download it from

http://www.microsoft.com/downloads/details.aspx?FamilyID=efb9c819-53ff-4f82-bfaf-e11625130c25&DisplayLang=en

Technorati tags: , ,

Blogger comments

At 1:10 AM, Anonymous Anonymous said...
Good Post!!
Useful!
Thanks,