htmlCtxtReadDoc is available since version 1.0.
Prototype:
number htmlCtxtReadDoc(number ctxt, string cur, string URL, string encoding, number options)
Parameters
ctxt
an HTML parser context
URL
the base URL to use for the document
encoding
the document encoding, or an empty string
options
a combination of htmlParserOption(s)
Description:
Parse an XML in-memory document and build a tree. This reuses the existing ctxt parser context
Return value:
Returns the resulting document tree or null if failed.