Skip to content

v2.2.0

Latest
Compare
Choose a tag to compare
@jonathanpoelen jonathanpoelen released this 14 Apr 22:19

Now default parsers extract the doctype element:

doctype = {
  pos=number, -- when pos parser
  name=string,
  ident=string or nil,
  pubident=string or nil, -- when ident != SYSTEM
  dtd=string or nil,
}

New functions:

  • toString()
  • escapeFunctions()
  • escapeComment()
  • escapeAttribute()
  • escapeAttributeAndAmp()
  • escapeCDATA()
  • escapeText()
  • escapeTextAndAmp()