|
XOOPS 2.5.6
Final
|

Public Member Functions | |
| parseAttributeString ($string, $config, $context) | |
| tokenizeHTML ($html, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_Lexer | |
| __construct () | |
| extractBody ($html) | |
| normalize ($html, $config, $context) | |
| parseData ($string) | |
| tokenizeHTML ($string, $config, $context) | |
Public Attributes | |
| $tracksLineNumbers = true | |
Public Attributes inherited from HTMLPurifier_Lexer | |
| $tracksLineNumbers = false | |
Protected Member Functions | |
| scriptCallback ($matches) | |
| substrCount ($haystack, $needle, $offset, $length) | |
Protected Attributes | |
| $_whitespace = "\x20\x09\x0D\x0A" | |
Protected Attributes inherited from HTMLPurifier_Lexer | |
| $_special_entity2str | |
Additional Inherited Members | |
Static Public Member Functions inherited from HTMLPurifier_Lexer | |
| static | create ($config) |
Static Protected Member Functions inherited from HTMLPurifier_Lexer | |
| static | CDATACallback ($matches) |
| static | escapeCDATA ($string) |
| static | escapeCommentedCDATA ($string) |
| static | removeIEConditional ($string) |
Our in-house implementation of a parser.
A pure PHP parser, DirectLex has absolutely no dependencies, making it a reasonably good default for PHP4. Written with efficiency in mind, it can be four times faster than HTMLPurifier_Lexer_PEARSax3, although it pales in comparison to HTMLPurifier_Lexer_DOMLex.
Definition at line 13 of file DirectLex.php.
| HTMLPurifier_Lexer_DirectLex::parseAttributeString | ( | $string, | |
| $config, | |||
| $context | |||
| ) |
Takes the inside of an HTML tag and makes an assoc array of attributes.
| $string | Inside of tag excluding name. |
Definition at line 342 of file DirectLex.php.
References $config, and HTMLPurifier_Lexer\parseData().
Referenced by tokenizeHTML().


|
protected |
Callback function for script CDATA fudge
| $matches,in | form of array(opening tag, contents, closing tag) |
Definition at line 27 of file DirectLex.php.
|
protected |
PHP 5.0.x compatible substr_count that implements offset and length
Definition at line 323 of file DirectLex.php.
Referenced by tokenizeHTML().

| HTMLPurifier_Lexer_DirectLex::tokenizeHTML | ( | $html, | |
| $config, | |||
| $context | |||
| ) |
Definition at line 31 of file DirectLex.php.
References $config, $html, $token, $type, HTMLPurifier_Lexer\normalize(), parseAttributeString(), HTMLPurifier_Lexer\parseData(), and substrCount().

|
protected |
Whitespace characters for str(c)spn.
Definition at line 21 of file DirectLex.php.
| HTMLPurifier_Lexer_DirectLex::$tracksLineNumbers = true |
Definition at line 16 of file DirectLex.php.