C# Класс CalDavSynchronizer.Conversions.Msft.HtmlParser

HtmlParser class accepts a string of possibly badly formed Html, parses it and returns a string of well-formed Html that is as close to the original string in content as possible
Показать файл Открыть проект Примеры использования класса

Приватные методы

Метод Описание
AddComment ( string comment ) : void
AddEmptyElement ( XmlElement htmlEmptyElement ) : void
AddHtmlClipboardHeader ( string htmlString ) : string

Adds Xhtml header information to Html data string so that it can be placed on clipboard

AddTextContent ( string textContent ) : void
CloseElement ( string htmlElementName ) : void
CreateElementCopy ( XmlElement htmlElement ) : XmlElement
ExtractHtmlFromClipboardData ( string htmlDataString ) : string

Extracts Html string from clipboard data by parsing header information in htmlDataString

HtmlParser ( string inputString ) : System

Constructor. Initializes the _htmlLexicalAnalayzer element with the given input string

InvariantAssert ( bool condition, string message ) : void
IsElementOpened ( string htmlElementName ) : bool
OpenInlineElement ( XmlElement htmlInlineElement ) : void
OpenPendingInlineElements ( ) : void
OpenStructuringElement ( XmlElement htmlElement ) : void
ParseAttributes ( XmlElement xmlElement ) : void
ParseHtml ( string htmlString ) : XmlElement

Instantiates an HtmlParser element and calls the parsing function on the given input string

ParseHtmlContent ( ) : XmlElement

Parses the stream of html tokens starting from the name of top-level element. Returns XmlElement representing the top-level html element