There are several differences. First, the Microsoft AntiXss library uses AntiXss encoding, which means that all characters are encoded, with the exception of all characters that are safe. The standard ASP.NET encoding mechanism is blacklisting. For example, for HTML encoding, it encodes only 4 characters: < , > , & and " (for example, it does not encode a single quote). Look, for example, at this SO answer , what could go wrong with this.
Another difference is that the basic ASP.NET encoding (using HttpUtility ) is able to encode HTML en URLs. AntiXss also allows you to encode HTML attributes and JavaScript text. There is no safe way to work in standard ASP.NET.
source share