|
Cheetah
|
Public Member Functions | |
| __construct () | |
| tokenizeHTML ($html, $config, $context) | |
| muteErrorHandler ($errno, $errstr) | |
| callbackUndoCommentSubst ($matches) | |
| callbackArmorCommentEntities ($matches) | |
Public Member Functions inherited from HTMLPurifier_Lexer | |
| parseText ($string, $config) | |
| parseAttr ($string, $config) | |
| parseData ($string, $is_attr, $config) | |
| normalize ($html, $config, $context) | |
| extractBody ($html) | |
Protected Member Functions | |
| tokenizeDOM ($node, &$tokens, $config) | |
| getTagName ($node) | |
| getData ($node) | |
| createStartNode ($node, &$tokens, $collect, $config) | |
| createEndNode ($node, &$tokens) | |
| transformAttrToAssoc ($node_map) | |
| wrapHTML ($html, $config, $context, $use_div=true) | |
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 | escapeCDATA ($string) |
| static | escapeCommentedCDATA ($string) |
| static | removeIEConditional ($string) |
| static | CDATACallback ($matches) |
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 18942 of file HTMLPurifier.standalone.php.
| HTMLPurifier_Lexer_DOMLex::__construct | ( | ) |
Reimplemented from HTMLPurifier_Lexer.
Definition at line 18950 of file HTMLPurifier.standalone.php.
| HTMLPurifier_Lexer_DOMLex::callbackArmorCommentEntities | ( | $matches | ) |
Callback function that entity-izes ampersands in comments so that callbackUndoCommentSubst doesn't clobber them
| array | $matches |
Definition at line 19213 of file HTMLPurifier.standalone.php.
| HTMLPurifier_Lexer_DOMLex::callbackUndoCommentSubst | ( | $matches | ) |
Callback function for undoing escaping of stray angled brackets in comments
| array | $matches |
Definition at line 19202 of file HTMLPurifier.standalone.php.
|
protected |
| DOMNode | $node | |
| HTMLPurifier_Token[] | $tokens |
Definition at line 19160 of file HTMLPurifier.standalone.php.
|
protected |
| DOMNode | $node | DOMNode to be tokenized. |
| HTMLPurifier_Token[] | $tokens | Array-list of already tokenized tokens. |
| bool | $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 19098 of file HTMLPurifier.standalone.php.
|
protected |
Portably retrieve the data of a node; deals with older versions of libxml like 2.7.6
| DOMNode | $node |
Definition at line 19076 of file HTMLPurifier.standalone.php.
|
protected |
Portably retrieve the tag name of a node; deals with older versions of libxml like 2.7.6
| DOMNode | $node |
Definition at line 19059 of file HTMLPurifier.standalone.php.
| HTMLPurifier_Lexer_DOMLex::muteErrorHandler | ( | $errno, | |
| $errstr | |||
| ) |
An error handler that mutes all errors
| int | $errno | |
| string | $errstr |
Definition at line 19192 of file HTMLPurifier.standalone.php.
|
protected |
Iterative function that tokenizes a node, putting it into an accumulator. To iterate is human, to recurse divine - L. Peter Deutsch
| DOMNode | $node | DOMNode to be tokenized. |
| HTMLPurifier_Token[] | $tokens | Array-list of already tokenized tokens. |
Definition at line 19024 of file HTMLPurifier.standalone.php.
| HTMLPurifier_Lexer_DOMLex::tokenizeHTML | ( | $html, | |
| $config, | |||
| $context | |||
| ) |
| string | $html | |
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context |
Reimplemented from HTMLPurifier_Lexer.
Reimplemented in HTMLPurifier_Lexer_PH5P.
Definition at line 18963 of file HTMLPurifier.standalone.php.
|
protected |
Converts a DOMNamedNodeMap of DOMAttr objects into an assoc array.
| DOMNamedNodeMap | $node_map | DOMNamedNodeMap of DOMAttr objects. |
Definition at line 19172 of file HTMLPurifier.standalone.php.
|
protected |
Wraps an HTML fragment in the necessary HTML
| string | $html | |
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context |
Definition at line 19225 of file HTMLPurifier.standalone.php.