Click or drag to resize
MimeKit

HtmlTokenizer Class

An HTML tokenizer.
Inheritance Hierarchy
SystemObject
  MimeKit.TextHtmlTokenizer

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public class HtmlTokenizer

The HtmlTokenizer type exposes the following members.

Constructors
 NameDescription
Public methodHtmlTokenizer(Stream) Initialize a new instance of the HtmlTokenizer class.
Public methodHtmlTokenizer(TextReader) Initialize a new instance of the HtmlTokenizer class.
Public methodHtmlTokenizer(Stream, Encoding) Initialize a new instance of the HtmlTokenizer class.
Public methodHtmlTokenizer(Stream, Encoding, Boolean, Int32) Initialize a new instance of the HtmlTokenizer class.
Top
Properties
 NameDescription
Public propertyDecodeCharacterReferences Get or set whether or not the tokenizer should decode character references.
Public propertyHtmlNamespace Get the current HTML namespace detected by the tokenizer.
Public propertyIgnoreTruncatedTags Get or set whether or not the tokenizer should ignore truncated tags.
Public propertyLineNumber Get the current line number.
Public propertyLinePosition Get the current line position.
Public propertyTokenizerState Get the current state of the tokenizer.
Top
Methods
 NameDescription
Protected methodCreateAttribute Create an attribute.
Protected methodCreateCDataToken Create an HTML character data token.
Protected methodCreateCommentToken Create an HTML comment token.
Protected methodCreateDataToken Create an HTML character data token.
Protected methodCreateDocType Create a DOCTYPE token.
Protected methodCreateScriptDataToken Create an HTML script data token.
Protected methodCreateTagToken Create an HTML tag token.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodReadNextToken Read the next token.
Public methodToString
(Inherited from Object)
Top
Remarks
Tokenizes HTML text, emitting an HtmlToken for each token it encounters.
See Also