| ILIAS
    release_5-3 Revision v5.3.23-19-g915713cf615
    | 
Our in-house implementation of a parser. More...
 Inheritance diagram for HTMLPurifier_Lexer_DirectLex:
 Inheritance diagram for HTMLPurifier_Lexer_DirectLex: Collaboration diagram for HTMLPurifier_Lexer_DirectLex:
 Collaboration diagram for HTMLPurifier_Lexer_DirectLex:| Public Member Functions | |
| tokenizeHTML ($html, $config, $context) | |
| parseAttributeString ($string, $config, $context) | |
| Takes the inside of an HTML tag and makes an assoc array of attributes.  More... | |
|  Public Member Functions inherited from HTMLPurifier_Lexer | |
| __construct () | |
| parseText ($string, $config) | |
| parseAttr ($string, $config) | |
| parseData ($string, $is_attr, $config) | |
| Parses special entities into the proper characters.  More... | |
| tokenizeHTML ($string, $config, $context) | |
| Lexes an HTML string into tokens.  More... | |
| normalize ($html, $config, $context) | |
| Takes a piece of HTML and normalizes it by converting entities, fixing encoding, extracting bits, and other good stuff.  More... | |
| extractBody ($html) | |
| Takes a string of HTML (fragment or document) and returns the content.  More... | |
| Data Fields | |
| $tracksLineNumbers = true | |
| @type bool  More... | |
|  Data Fields inherited from HTMLPurifier_Lexer | |
| $tracksLineNumbers = false | |
| Whether or not this lexer implements line-number/column-number tracking.  More... | |
| Protected Member Functions | |
| scriptCallback ($matches) | |
| Callback function for script CDATA fudge.  More... | |
| substrCount ($haystack, $needle, $offset, $length) | |
| PHP 5.0.x compatible substr_count that implements offset and length.  More... | |
| Protected Attributes | |
| $_whitespace = "\x20\x09\x0D\x0A" | |
| Whitespace characters for str(c)spn.  More... | |
|  Protected Attributes inherited from HTMLPurifier_Lexer | |
| $_special_entity2str | |
| Most common entity to raw value conversion table for special entities.  More... | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from HTMLPurifier_Lexer | |
| static | create ($config) | 
| Retrieves or sets the default Lexer as a Prototype Factory.  More... | |
|  Static Protected Member Functions inherited from HTMLPurifier_Lexer | |
| static | escapeCDATA ($string) | 
| Translates CDATA sections into regular sections (through escaping).  More... | |
| static | escapeCommentedCDATA ($string) | 
| Special CDATA case that is especially convoluted for <script>  More... | |
| static | removeIEConditional ($string) | 
| Special Internet Explorer conditional comments should be removed.  More... | |
| static | CDATACallback ($matches) | 
| Callback function for escapeCDATA() that does the work.  More... | |
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 | $string | Inside of tag excluding name. | 
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context | 
Definition at line 376 of file DirectLex.php.
References $config, $key, $size, and HTMLPurifier_Lexer\parseAttr().
Referenced by tokenizeHTML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Callback function for script CDATA fudge.
| array | $matches,in | form of array(opening tag, contents, closing tag) | 
Definition at line 31 of file DirectLex.php.
| 
 | protected | 
PHP 5.0.x compatible substr_count that implements offset and length.
| string | $haystack | |
| string | $needle | |
| int | $offset | |
| int | $length | 
Definition at line 354 of file DirectLex.php.
Referenced by tokenizeHTML().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_Lexer_DirectLex::tokenizeHTML | ( | $html, | |
| $config, | |||
| $context | |||
| ) | 
| String | $html | |
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context | 
Reimplemented from HTMLPurifier_Lexer.
Definition at line 42 of file DirectLex.php.
References $config, $end, $html, $type, HTMLPurifier_Lexer\normalize(), parseAttributeString(), HTMLPurifier_Lexer\parseText(), and substrCount().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
| HTMLPurifier_Lexer_DirectLex::$tracksLineNumbers = true | 
@type bool
Definition at line 18 of file DirectLex.php.