Method | Description | |
---|---|---|
HtmlParser ( ) : System |
Creates HTML parser with HTML parsing mode.
|
|
HtmlParser ( ParsingMode parsingMode ) : System |
Creates HTML parser.
|
|
HtmlParser ( ParsingMode parsingMode, IHtmlScriptTypeResolutionService scriptTypeResolution, IHtmlScriptOrStyleTagNamesService scriptOrStyleTagNameService ) : System |
Creates HTML parser
|
|
Parse ( ITextProvider textProvider ) : void |
Parse text from a text provider
|
|
Parse ( ITextProvider textProvider, ITextRange range ) : void |
Parse text from a text provider within a given range
|
|
Parse ( string text ) : void |
Parse HTML from a string
|
Method | Description | |
---|---|---|
CloseStartTag ( int position, int length, bool selfClose, bool wellFormed ) : void | ||
FindEndOfBlock ( string endTag, bool simpleSearch = false ) : ITextRange | ||
GetAttributeState ( int tagEnd, bool artifactTag, bool getValueInfo ) : |
||
GetAttributeValue ( bool isScript, int tagEnd ) : IHtmlAttributeValueToken | ||
GetAttributeValue ( IHtmlAttributeValueToken valueToken ) : string | ||
OnAttributeState ( bool artifactTag = false ) : |
||
OnAttributeState ( int tagEnd, bool artifactTag = false ) : |
||
OnCommentState ( ) : void | ||
OnEndTagState ( ) : void | ||
OnEntityState ( ) : void | ||
OnScriptState ( string scriptType, |
||
OnStartTagState ( ) : void | ||
OnStyleState ( |
||
OnTextState ( ) : void | ||
UpdateDocType ( ) : void | ||
UpdateParseMode ( DocType docType ) : void |
public HtmlParser ( ParsingMode parsingMode ) : System | ||
parsingMode | ParsingMode | /// Parsing mode (HTML, XHTML or XML). HTML and XHTML differ in element /// and attribute name case-sensitity while XML mode treats <script> /// and <style elements as regular elements. /// |
return | System |
public HtmlParser ( ParsingMode parsingMode, IHtmlScriptTypeResolutionService scriptTypeResolution, IHtmlScriptOrStyleTagNamesService scriptOrStyleTagNameService ) : System | ||
parsingMode | ParsingMode | /// Parsing mode (HTML, XHTML or XML). HTML and XHTML differ in element /// and attribute name case-sensitity while XML mode treats <script> /// and <style elements as regular elements. /// |
scriptTypeResolution | IHtmlScriptTypeResolutionService | /// A service that helps parser to detemine if content of a <script> /// block should be skipped over (normal behavior) or should parser /// continue parsing inside the block since block content is actually /// a markup, like in <script type="text/x-handlebars-template">. /// |
scriptOrStyleTagNameService | IHtmlScriptOrStyleTagNamesService | |
return | System |
public Parse ( ITextProvider textProvider ) : void | ||
textProvider | ITextProvider | Text provider |
return | void |
public Parse ( ITextProvider textProvider, ITextRange range ) : void | ||
textProvider | ITextProvider | Text provider |
range | ITextRange | Range to parse |
return | void |