This module provides functions to tidy a HTML document.
The functions in this module take an HTML document (a string) as parameter,
tidy it in order to result in valid XHTML, and return this XHTML document as a document-node.
parse
($html as xs:string) as document()
This function tidies the given HTML string and returns a valid XHTML document node. |
parse
($html as xs:string, $options as element(html-options:options)) as document()
This function tidies the given HTML string and returns a valid XHTML document node. |
declare function html:parse($html as xs:string) as document()
This function tidies the given HTML string and returns a valid XHTML document node.
This functions automatically sets the following tidying parameters:
declare function html:parse($html as xs:string, $options as element(html-options:options)) as document()
This function tidies the given HTML string and returns a valid XHTML document node.
The second parameter allows to specify options that configure the tidy process. This parameter is a sequence of name=value pairs. Allowed parameter names and values are documented at http://tidy.sourceforge.net/docs/quickref.html.