Tools to build element trees from HTML files.
ElementTree builder for HTML source code.
For more information about this class, see The HTMLTreeBuilder Class.
Parse an HTML document or document fragment.
An alias for the HTMLTreeBuilder class.
ElementTree builder for HTML source code. This builder converts an HTML document or fragment to an ElementTree.
The parser is relatively picky, and requires balanced tags for most elements. However, elements belonging to the following group are automatically closed: P, LI, TR, TH, and TD. In addition, the parser automatically inserts end tags immediately after the start tag, and ignores any end tags for the following group: IMG, HR, META, and LINK.
Flushes parser buffers, and return the root element.
(Internal) Handles character references.
(Internal) Handles character data.
(Internal) Handles end tags.
(Internal) Handles entity references.
(Internal) Handles start tags.
(Hook) Handles unknown entity references. The default action is to ignore unknown entities.