how to sanitize input data in web api using anti xss attack
问题 Below is the snippet of my code Model class // Customer.cs using CommonLayer; namespace Models { public class Customer { public int Id { get; set; } [MyAntiXss] public string Name { get; set; } } } I want to sanitize the value in the 'Name' field of the Model class as below // CutstomModelBinder.cs using Microsoft.Security.Application; using System.ComponentModel; using System.Linq; using System.Web.Mvc; namespace CommonLayer { public class CutstomModelBinder : DefaultModelBinder { protected