Classes
HtmlStateMachineLexer
1
▼
HTML lexer with tag, attribute, and comment parsing.
Handles HTML5 syntax including comments, doct…
HtmlStateMachineLexer
1
▼
HTML lexer with tag, attribute, and comment parsing.
Handles HTML5 syntax including comments, doctype, and tag attributes.
Methods
tokenize
2
Iterator[Token]
▼
tokenize
2
Iterator[Token]
▼
def tokenize(self, code: str, config: LexerConfig | None = None) -> Iterator[Token]
Parameters
| Name | Type | Description |
|---|---|---|
code |
— |
|
config |
— |
Default:None
|
Returns
Iterator[Token]