Using Microsoft AntiXSS 1.5

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

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

Technorati tags: , ,

One thought on “Using Microsoft AntiXSS 1.5”

Leave a Reply

Your email address will not be published. Required fields are marked *