XOOPS 2.5.6
Final
|
Public Member Functions | |
__construct () | |
callbackArmorCommentEntities ($matches) | |
callbackUndoCommentSubst ($matches) | |
muteErrorHandler ($errno, $errstr) | |
tokenizeHTML ($html, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_Lexer | |
__construct () | |
extractBody ($html) | |
normalize ($html, $config, $context) | |
parseData ($string) | |
tokenizeHTML ($string, $config, $context) | |
Protected Member Functions | |
createEndNode ($node, &$tokens) | |
createStartNode ($node, &$tokens, $collect) | |
tokenizeDOM ($node, &$tokens) | |
transformAttrToAssoc ($node_map) | |
wrapHTML ($html, $config, $context) | |
Private Attributes | |
$factory | |
Additional Inherited Members | |
Static Public Member Functions inherited from HTMLPurifier_Lexer | |
static | create ($config) |
Public Attributes inherited from HTMLPurifier_Lexer | |
$tracksLineNumbers = false | |
Static Protected Member Functions inherited from HTMLPurifier_Lexer | |
static | CDATACallback ($matches) |
static | escapeCDATA ($string) |
static | escapeCommentedCDATA ($string) |
static | removeIEConditional ($string) |
Protected Attributes inherited from HTMLPurifier_Lexer | |
$_special_entity2str | |
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.
Definition at line 27 of file DOMLex.php.
HTMLPurifier_Lexer_DOMLex::__construct | ( | ) |
Definition at line 32 of file DOMLex.php.
HTMLPurifier_Lexer_DOMLex::callbackArmorCommentEntities | ( | $matches | ) |
Callback function that entity-izes ampersands in comments so that callbackUndoCommentSubst doesn't clobber them
Definition at line 216 of file DOMLex.php.
HTMLPurifier_Lexer_DOMLex::callbackUndoCommentSubst | ( | $matches | ) |
Callback function for undoing escaping of stray angled brackets in comments
Definition at line 208 of file DOMLex.php.
|
protected |
Definition at line 176 of file DOMLex.php.
Referenced by tokenizeDOM().
|
protected |
$node | DOMNode to be tokenized. |
$tokens | Array-list of already tokenized tokens. |
$collect | Says whether or start and close are collected, set to false at first recursion because it's the implicit DIV tag you're dealing with. |
Definition at line 119 of file DOMLex.php.
References HTMLPurifier_Lexer\parseData(), and transformAttrToAssoc().
Referenced by tokenizeDOM().
HTMLPurifier_Lexer_DOMLex::muteErrorHandler | ( | $errno, | |
$errstr | |||
) |
An error handler that mutes all errors
Definition at line 202 of file DOMLex.php.
|
protected |
Iterative function that tokenizes a node, putting it into an accumulator. To iterate is human, to recurse divine - L. Peter Deutsch
$node | DOMNode to be tokenized. |
$tokens | Array-list of already tokenized tokens. |
Definition at line 81 of file DOMLex.php.
References createEndNode(), and createStartNode().
Referenced by HTMLPurifier_Lexer_PH5P\tokenizeHTML(), and tokenizeHTML().
HTMLPurifier_Lexer_DOMLex::tokenizeHTML | ( | $html, | |
$config, | |||
$context | |||
) |
Definition at line 38 of file DOMLex.php.
References $comment, $config, $html, HTMLPurifier_Lexer\normalize(), tokenizeDOM(), and wrapHTML().
|
protected |
Converts a DOMNamedNodeMap of DOMAttr objects into an assoc array.
$attribute_list | DOMNamedNodeMap of DOMAttr objects. |
Definition at line 187 of file DOMLex.php.
Referenced by createStartNode().
|
protected |
Wraps an HTML fragment in the necessary HTML
Definition at line 223 of file DOMLex.php.
Referenced by HTMLPurifier_Lexer_PH5P\tokenizeHTML(), and tokenizeHTML().
|
private |
Definition at line 30 of file DOMLex.php.