| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HTMLTokenizer.Parser
- data Token
- type OpeningTag = (Identifier, [Attribute], Bool)
- type Identifier = CI Text
- type Attribute = (Identifier, Maybe Text)
- token :: Parser Token
Model
An HTML token.
Constructors
| Token_OpeningTag OpeningTag | An opening tag. |
| Token_ClosingTag Identifier | A closing tag. |
| Token_Text Text | A text between tags with HTML-entities decoded. |
| Token_Comment Text | Contents of a comment. |
type OpeningTag = (Identifier, [Attribute], Bool) Source
An opening tag name, attributes and whether it is closed.
type Identifier = CI Text Source
A case-insensitive identifier.
type Attribute = (Identifier, Maybe Text) Source
A tag attribute identifier and a value.