Method | Description | |
---|---|---|
SanitizeHtml ( string source ) : string |
Takes raw HTML input and cleans against a whitelist
|
|
StripHtml ( string source ) : string |
Takes a raw source and removes all HTML tags
|
Method | Description | |
---|---|---|
CleanChildren ( |
Apply CleanNodes to each of the child nodes
|
|
CleanNodes ( |
Recursively delete nodes not in the whitelist
|
|
GetHtml ( string source ) : HtmlAgilityPack.HtmlDocument |
Helper function that returns an HTML document from text
|
public static SanitizeHtml ( string source ) : string | ||
source | string | Html source |
return | string |
public static StripHtml ( string source ) : string | ||
source | string | |
return | string |