SyntaxFix
Write A Post
Hire A Developer
Questions
.NET 4.0 and above:
using System.Web.Security.AntiXss; //... var encoded = AntiXssEncoder.HtmlEncode("input", useNamedEntities: true);