The HtmlFormatter type exposes the following members.

Methods

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

See Also