class Kramdown::Converter::Html

def escape_html(str, type = :all)

special HTML characters except the quotation mark but no entities.
: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