module Kramdown::Utils::HTML
def escape_html(str, type = :all)
:no_entities - all special HTML characters but no entities, :text - all
is escaped: :all - all special HTML characters as well as entities,
Escape the special HTML characters in the string +str+. The parameter +type+ specifies what
def escape_html(str, type = :all) str.gsub(ESCAPE_RE_FROM_TYPE[type]) {|m| ESCAPE_MAP[m] || m} end