Top "Antixsslibrary" questions

The AntiXSS Library is a .NET assembly provided as part of the Web Protection Library, a Microsoft Open Source project.

Can't include Microsoft.Security.Application?

I can't include Microsoft.Security.Application using Microsoft.Security.Application; Gives this error: The type or namespace name 'Security' does …

c# .net asp.net namespaces antixsslibrary
What is the difference between AntiXss.HtmlEncode and HttpUtility.HtmlEncode?

I just ran across a question with an answer suggesting the AntiXss library to avoid cross site scripting. Sounded interesting, …

asp.net xss html-encode antixsslibrary
Why use Microsoft AntiXSS library?

When you can simply encode the data using HttpUtility.HtmlEncode, why should we use AntiXss.HtmlEncode? Why is white list …

.net asp.net xss antixsslibrary
System.Web.Security.AntiXss.AntiXssEncoder vs Microsoft.Security.Application.AntiXssEncoder

In ASP.NET 4.5 there is a new namespace System.Web.Security.AntiXss which includes encoding routines from version 4.0 of the …

asp.net asp.net-4.5 antixsslibrary
How to properly sanitize content with AntiXss Library?

I have a simple forums application, when someone posts any content, i do: post.Content = Sanitizer.GetSafeHtml(post.Content); Now, …

asp.net .net security xss antixsslibrary
How to use AntiXss in my Project?

I want to use AntiXss library function in my web application. I have a web application which contain asp.net …

c# jquery asp.net antixsslibrary
Is Sanitizer.GetSafeHtmlFragment supposed to remove <br> elements?

MS's AntiXSS (v4.2.1) Sanitizer.GetSafeHtmlFragment(string) method is removing <br> and <br /> tags from my input. …

c# antixsslibrary
Using MS Anti XSS library for sanitizing HTML

In the intent of preventing XSS attacks, I am updating a page in which we have a textbox that accepts …

.net asp.net security xss antixsslibrary
Sanitize HTML before storing in the DB or before rendering? (AntiXSS library in ASP.NET)

I have an editor that lets users add HTML that is stored in the database and rendered on a web …

asp.net xss antixsslibrary html-sanitizing
How to use Microsoft AntiXss 4.x?

I want to use the new version of the AntiXss library from Microsoft. I downloaded it from the Nuget package …

c# asp.net-mvc security xss antixsslibrary