I can\'t include Microsoft.Security.Application
using Microsoft.Security.Application;
Gives this error:
If you get this nuget all extention objects are visibles
Install-Package AntiXSS
it solves my problem.
html = Microsoft.Security.Application.Encoder.HtmlEncode(model.SiteName), model = Microsoft.Security.Application.Encoder.HtmlEncode(json),