The HtmlFormatter type exposes the following members.
Methods
Name | Description | |
---|---|---|
ContainsTags |
Check if string contain HTML tags.
|
|
CreateCssLink |
Creates a CSS link in the header of the page.
|
|
CreateFaviconLink |
Creates a Favicon link in the header of the page.
|
|
DecodeBreaks |
Decodes carriage return to html breaks.
|
|
EncodeBreaks |
Encodes html breaks to carriage return.
|
|
Html2Txt |
Removes all HTML formatting from the page (e.g. head, script sections are removed).
|
|
Multiline2SinglelineText |
Converts multiline text to single line text.
|
|
RemoveHtmlTag |
Removes specified tag from the provided HTML string.
|
|
SanitizeHtml(String) |
Sanitizes "unsecured" text that may be prone to XSS attacks
|
|
SanitizeHtml(String, Boolean) |
Sanitizes "unsecured" text that may be prone to XSS attacks
|
|
StripTags(String) |
Strips tags from the provided HTML string.
|
|
StripTags(String, Boolean) |
Strips tags from the provided HTML string.
|
|
Tokenize |
Gets the tokenized HTML from input HTML.
|