Class HTMLPurifier_Lexer_DirectLex
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.
- HTMLPurifier_Lexer
- HTMLPurifier_Lexer_DirectLex
protected
|
|
public
|
|
protected
|
#
substrCount( $haystack, $needle, $offset, $length )
PHP 5.0.x compatible substr_count that implements offset and length |
public
|
#
parseAttributeString( $string $string, $config, $context )
Takes the inside of an HTML tag and makes an assoc array of attributes. |
CDATACallback(),
__construct(),
create(),
escapeCDATA(),
escapeCommentedCDATA(),
extractBody(),
normalize(),
parseData(),
removeIEConditional()
|
public
boolean
|
$tracksLineNumbers | true |
#
Whether or not this lexer implements line-number/column-number tracking. If it does, set to true. |
protected
string
|
$_whitespace | "\x20\x09\x0D\x0A" |
#
Whitespace characters for str(c)spn. |
$_special_entity2str
|