Module default

Source
Expand description

The default emitter is what powers the simple SAX-like API that you see in the README.

Structs§

DefaultEmitter
This is the emitter you implicitly use with crate::Tokenizer::new. Refer to the crate docs for how usage looks like.
Doctype
A doctype. Some examples:
EndTag
A HTML end/close tag, such as </p> or </a>.
StartTag
A HTML end/close tag, such as <p> or <a>.

Enums§

Token
The token type used by default. You can define your own token type by implementing the crate::Emitter trait and using crate::Tokenizer::new_with_emitter.