Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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 |
Результат | string |
public static StripHtml ( string source ) : string | ||
source | string | |
Результат | string |