Options
All
  • Public
  • Public/Protected
  • All
Menu

Tries parsing an XHTML string as a modern XHTML5 string, also removes XML styling properties and XSLT references

If document is not valid XML, it tries parsing it as HTML5

Hierarchy

  • IXhtmlParser

Implemented by

Index

Methods

getDocument

  • getDocument(): HTMLDocument
  • Get the parsed document if it was parsed successfully.

    Returns HTMLDocument

getParserError

  • getParserError(): HTMLDocument
  • Get parser errors if any was encountered.

    Returns HTMLDocument

getXmlHeader

  • getXmlHeader(): string
  • Get the XML header for the parsed document.

    Returns string

isHtmlDocument

  • isHtmlDocument(): boolean
  • If the document was parsed as a HTML document.

    Returns boolean

isXhtmlDocument

  • isXhtmlDocument(): boolean
  • If the document was parsed as a XHTML document.

    Returns boolean

Generated using TypeDoc