updated README.md
This commit is contained in:
@@ -16,6 +16,9 @@ In order to facilitate different use cases, HtmlSanitizer can be customized at s
|
|||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Install the CsQuery NuGet package
|
||||||
|
- Copy `HtmlSanitizer.cs` into your project
|
||||||
|
|
||||||
var sanitizer = new HtmlSanitizer();
|
var sanitizer = new HtmlSanitizer();
|
||||||
var html = @"<script>alert('xss')</script><div onload=""alert('xss')"""
|
var html = @"<script>alert('xss')</script><div onload=""alert('xss')"""
|
||||||
+ @"style=""background-color: test"">Test<img src=""test.gif"""
|
+ @"style=""background-color: test"">Test<img src=""test.gif"""
|
||||||
|
|||||||
Reference in New Issue
Block a user