struct Myhtml::Parser

Defined in:

myhtml/parser.cr

Constant Summary

BUFFER_SIZE = 8192

Constructors

Instance Method Summary

Constructor Detail

def self.new(page : String, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil, detect_encoding_from_meta : Bool = false, detect_encoding : Bool = false) #

parse from string


[View source]
def self.new(io : IO, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil) #

parse from stream


[View source]

Instance Method Detail

def body(*args, **options) #

def body(*args, **options, &) #

def body!(*args, **options) #

def body!(*args, **options, &) #

def encoding : Myhtml::Lib::MyEncodingList #

[View source]
def free #

Dangerous, free object


[View source]
def head(*args, **options) #

def head(*args, **options, &) #

def head!(*args, **options) #

def head!(*args, **options, &) #

def html(*args, **options) #

def html(*args, **options, &) #

def html!(*args, **options) #

def html!(*args, **options, &) #

def nodes(tag_id : Myhtml::Lib::MyhtmlTags) #

[View source]
def nodes(tag_sym : Symbol) #

[View source]
def nodes(tag_str : String) #

[View source]
def root(*args, **options) #

def root(*args, **options, &) #

def root!(*args, **options) #

def root!(*args, **options, &) #

def tree : Myhtml::Tree #

[View source]