module Myhtml
Defined in:
myhtml.crmyhtml/constants.cr
myhtml/iterators.cr
myhtml/lib.cr
myhtml/node.cr
myhtml/parser.cr
myhtml/tag_id_convertion.cr
myhtml/tag_id_utils.cr
myhtml/tree.cr
Constant Summary
-
HTML_ENTITIES_NODE =
(Myhtml::Parser.new("1", tree_options: Myhtml::Lib::MyhtmlTreeParseFlags::MyHTML_TREE_PARSE_FLAGS_WITHOUT_DOCTYPE_IN_TREE)).body!.child!
-
!this object never freed!
-
TAGS_STRING_ID_MAP =
begin h = Hash(String, Lib::MyhtmlTags).new {% for name in Lib::MyhtmlTags.constants %} h["{{ (name.gsub(/MyHTML_TAG_/, "")).downcase.id }}"] = Lib::MyhtmlTags::{{ name.id }} {% end %} h end
-
TAGS_STRING_SYM_MAP =
begin h = Hash(String, Symbol).new {% for name in Lib::MyhtmlTags.constants.map() do |__arg0| (__arg0.gsub(/MyHTML_TAG_/, "")).downcase end %} h["{{ name.id }}"] = :{{ name.id }} {% end %} h end
-
VERSION =
"0.30"
Class Method Summary
- .decode_html_entities(str : String)
- .detect_encoding(pointer, bytesize)
- .detect_encoding(content : String)
- .detect_encoding?(pointer, bytesize)
- .detect_encoding?(content : String)
- .detect_encoding_from_content_by_meta(pointer, bytesize)
- .detect_encoding_from_content_by_meta(content : String)
- .detect_encoding_from_content_by_meta?(pointer, bytesize)
- .detect_encoding_from_content_by_meta?(content : String)
- .detect_encoding_from_header(header : String) : Lib::MyEncodingList | EncodingNotFound
- .detect_encoding_from_header?(header) : Lib::MyEncodingList | Nil
- .lib_version
- .symbol_by_tag_id(tag_id : Lib::MyhtmlTags)
- .tag_id_by_string(str : String)
- .tag_id_by_symbol(sym : Symbol)
- .tag_symbol_by_string(str : String)
- .version_string
Class Method Detail
def self.detect_encoding_from_header(header : String) : Lib::MyEncodingList | EncodingNotFound
#