In ASP.NET 4.5 there is a new namespace System.Web.Security.AntiXss
which includes encoding routines from version 4.0 of the AntiXssLibrary (http://www.asp.net/aspnet/overview/aspnet-45/whats-new#_Toc318097382).
The latest version of AntiXssLibrary is 4.2.1.
I'm quite confused what type I should use for encoding output HTML in my new project: built in System.Web.Security.AntiXss.AntiXssEncoder
or Microsoft.Security.Application.AntiXssEncoder
from AntiXssLibrary. Could anyone tell me what type is preferred to use and why?