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
string pageTitle = AntiXss.HtmlEncode(Request.QueryString[“Page”]);
Remember: Always HtmlEncode untrusted text.
Download it from