Skip to content
April 23, 2014 / Andrew

Sanitizing HTML input with .NET

My current project needs to accept HTML input from users. Therefore, it needs to sanitize the input to prevent XSS. The previous owner of this project used Microsoft’s AntiXSS library, which is overzealous. For example, it strips out <ul> and <h1> and <strong> elements.

These are the most helpful things I found. They look very similar to each other.

Hopefully those links will help you too.

Like Loading...
Filed under Uncategorized

Leave a comment Cancel reply

[フレーム]
Design a site like this with WordPress.com
Get started

AltStyle によって変換されたページ (->オリジナル) /