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