Colibrio Reader Framework API - Cloud license
    Preparing search index...

    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

    Implements

    Constructors

    • Creates a new instance and parses the given XHTML or HTML string.

      Parameters

      • xhtmlString: string

        The XHTML or HTML string to parse.

      • path: string

        The path to the file (used for error reporting).

      • forceHtml: boolean

        Parse the string as a HTML document. Don't try to parse the string as XHTML.

      Returns XhtmlParser

    Methods

    • Get the parsed document if it was parsed successfully.

      Returns HTMLDocument

    • Get parser errors if any was encountered.

      Returns HTMLDocument

    • Get the XML header for the parsed document.

      Returns string

    • If the document was parsed as a HTML document.

      Returns boolean

    • If the document was parsed as a XHTML document.

      Returns boolean