I can't include Microsoft.Security.Application
using Microsoft.Security.Application;
Gives this error:
The type or namespace name 'Security' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
And yes, I clicked on Bin -> Add Reference... -> AntiXSSLibrary.dll and it added it to the Bin Folder including the AntiXSSLibrary.xml.
I rebuilt the whole website, and still nothing.
I'm using ASP .NET 3.5 C# - AntiXSSLibrary 4.0 Stable
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),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With