Class HTMLPurifier_Lexer_DOMLex

extends HTMLPurifier_Lexer

Parser that uses PHP 5's DOM extension (part of the core).

In PHP 5, the DOM XML extension was revamped into DOM and added to the core. It gives us a forgiving HTML parser, which we use to transform the HTML into a DOM, and then into the tokens. It is blazingly fast (for large documents, it performs twenty times faster than HTMLPurifier_Lexer_DirectLex,and is the default choice for PHP 5.

Methods
Methods inherited from HTMLPurifier_Lexer
create(), parseText(), parseAttr(), parseData(), escapeCDATA(), escapeCommentedCDATA(), removeIEConditional(), CDATACallback(), normalize(), extractBody()
Properties inherited from HTMLPurifier_Lexer
$tracksLineNumbers, $_special_entity2str