class

Myhtml::SAX

Inherits Reference < Object

Html SAX Parser

Constants

CALLBACK = ->(_tree : ::Pointer(Myhtml::Lib::MyhtmlTreeT), _token : ::Pointer(Myhtml::Lib::MyhtmlTokenNodeT), _ctx : ::Pointer(Void)) do if _ctx.null? else tok = _ctx.as(Tokenizer) if _token.null? else tok.on_token(SAX::Token.new(tok, _tree, _token)) end end _ctx end

Constructors

new(tokenizer : Tokenizer, build_tree = false, skip_whitespace_token = true, tree_options = nil)
Source

Instance methods

free

Dangerous, free object

Source
parse(string : Nil | String, encoding = Lib::MyEncodingList::MyENCODING_UTF_8)
Source
raw_tree
Source
string
Source
tokenizer
Source
tree
Source

Nested types