class Kramdown::Converter::Html

def escape_html(str, all = true)

not part on an HTML entity.
characters are escaped, if +all+ is +false+ then only those characters are escaped that are
Escape the special HTML characters in the string +str+. If +all+ is +true+ then all
def escape_html(str, all = true)
  str.gsub(all ? ESCAPE_ALL_RE : ESCAPE_ALL_NOT_ENTITIES_RE) {|m| ESCAPE_MAP[m] || m}
end