

Öffentliche Methoden | |
| __construct () | |
| tokenizeHTML ($html, $config, $context) | |
| muteErrorHandler ($errno, $errstr) | |
| callbackUndoCommentSubst ($matches) | |
| callbackArmorCommentEntities ($matches) | |
Geschützte Methoden | |
| tokenizeDOM ($node, &$tokens, $collect=false) | |
| transformAttrToAssoc ($node_map) | |
| wrapHTML ($html, $config, $context) | |
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.
PHP's DOM extension does not actually parse any entities, we use our own function to do that.
Definiert in Zeile 27 der Datei DOMLex.php.
| __construct | ( | ) |
| callbackArmorCommentEntities | ( | $ | matches | ) |
Callback function that entity-izes ampersands in comments so that callbackUndoCommentSubst doesn't clobber them
Definiert in Zeile 186 der Datei DOMLex.php.
| callbackUndoCommentSubst | ( | $ | matches | ) |
Callback function for undoing escaping of stray angled brackets in comments
Definiert in Zeile 178 der Datei DOMLex.php.
| muteErrorHandler | ( | $ | errno, | |
| $ | errstr | |||
| ) |
An error handler that mutes all errors
Definiert in Zeile 172 der Datei DOMLex.php.
| tokenizeDOM | ( | $ | node, | |
| &$ | tokens, | |||
| $ | collect = false | |||
| ) | [protected] |
Recursive function that tokenizes a node, putting it into an accumulator.
| $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. |
Definiert in Zeile 84 der Datei DOMLex.php.


| tokenizeHTML | ( | $ | string, | |
| $ | config, | |||
| $ | context | |||
| ) |
Lexes an HTML string into tokens.
| $string | String HTML. |
Erneute Implementation von HTMLPurifier_Lexer.
Erneute Implementation in HTMLPurifier_Lexer_PH5P.
Definiert in Zeile 38 der Datei DOMLex.php.

| transformAttrToAssoc | ( | $ | node_map | ) | [protected] |
Converts a DOMNamedNodeMap of DOMAttr objects into an assoc array.
| $attribute_list | DOMNamedNodeMap of DOMAttr objects. |
Definiert in Zeile 157 der Datei DOMLex.php.

| wrapHTML | ( | $ | html, | |
| $ | config, | |||
| $ | context | |||
| ) | [protected] |
Wraps an HTML fragment in the necessary HTML
Definiert in Zeile 193 der Datei DOMLex.php.

| Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|