Méthode | 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
|
Méthode | 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 |
Résultat | string |
public static StripHtml ( string source ) : string | ||
source | string | |
Résultat | string |