Creates a tokenizer over the given decoded HTML string.
The decoded HTML text.
Gets or sets whether the tokenizer should decode character references.
Character references in attribute values are still decoded even when this is false.
Gets the current HTML namespace detected by the tokenizer.
Gets or sets whether the tokenizer should ignore truncated tags.
If false and the input abruptly ends in the middle of an HTML tag, it is
treated as an HtmlDataToken instead.
Gets the current line number.
This is most commonly used for error reporting. The starting value is 1;
together with currentLinePosition, 1,1 indicates the start of the document.
Gets the current line position.
This is most commonly used for error reporting. The starting value is 1;
together with currentLineNumber, 1,1 indicates the start of the document.
Gets the current state of the tokenizer.
StaticfromCreates a tokenizer from raw bytes with the given charset and BOM handling.
If byte-order-mark detection is enabled, UTF-8, little-endian UTF-16, big-endian UTF-16, little-endian UTF-32, and big-endian UTF-32 BOMs override the supplied encoding. Otherwise the supplied encoding is used.
The input bytes.
The charset encoding of the bytes.
true if byte order marks should be detected.
A tokenizer over the decoded HTML text.
ProtectedcreateProtectedcreateCreates an HTML comment token.
The comment.
true if the comment is bogus; otherwise, false.
The HTML comment token.
ProtectedcreateCreates an HTML character data token.
The character data.
The HTML character data token.
ProtectedcreateCreates an HTML CDATA token.
The character data.
The HTML CDATA token.
ProtectedcreateCreates an HTML script data token.
The script data.
The HTML script data token.
ProtectedcreateCreates an HTML tag token.
The tag name.
true if the tag is an end tag; otherwise, false.
The HTML tag token.
ProtectedcreateCreates an attribute.
The attribute name.
The attribute.
An HTML tokenizer.
Tokenizes HTML text, emitting an HtmlToken for each token it encounters.