[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/lib/htmlpurifier/HTMLPurifier/Lexer/ -> DirectLex.php (summary)

(no description)

File Size: 495 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_Lexer_DirectLex:: (4 methods):
  scriptCallback()
  tokenizeHTML()
  substrCount()
  parseAttributeString()


Class: HTMLPurifier_Lexer_DirectLex  - X-Ref

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.

scriptCallback($matches)   X-Ref
Callback function for script CDATA fudge

param: $matches, in form of array(opening tag, contents, closing tag)

tokenizeHTML($html, $config, &$context)   X-Ref
No description

substrCount($haystack, $needle, $offset, $length)   X-Ref
PHP 4 compatible substr_count that implements offset and length


parseAttributeString($string, $config, &$context)   X-Ref
Takes the inside of an HTML tag and makes an assoc array of attributes.

returns: Assoc array of attributes.
param: $string Inside of tag excluding name.



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7