module Myhtml

Defined in:

myhtml.cr
myhtml/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

Class Method Detail

def self.decode_html_entities(str : String) #

[View source]
def self.detect_encoding(pointer, bytesize) #

[View source]
def self.detect_encoding(content : String) #

[View source]
def self.detect_encoding?(pointer, bytesize) #

[View source]
def self.detect_encoding?(content : String) #

[View source]
def self.detect_encoding_from_content_by_meta(pointer, bytesize) #

[View source]
def self.detect_encoding_from_content_by_meta(content : String) #

[View source]
def self.detect_encoding_from_content_by_meta?(pointer, bytesize) #

[View source]
def self.detect_encoding_from_content_by_meta?(content : String) #

[View source]
def self.detect_encoding_from_header(header : String) : Lib::MyEncodingList | EncodingNotFound #

[View source]
def self.detect_encoding_from_header?(header) : Lib::MyEncodingList | Nil #

[View source]
def self.lib_version #

[View source]
def self.symbol_by_tag_id(tag_id : Lib::MyhtmlTags) #

[View source]
def self.tag_id_by_string(str : String) #

[View source]
def self.tag_id_by_symbol(sym : Symbol) #

[View source]
def self.tag_symbol_by_string(str : String) #

[View source]
def self.version_string #

[View source]