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
string
|
|
public
array|
|
|
protected
integer
|
#
substrCount( string $haystack, string $needle, integer $offset, integer $length )
PHP 5.0.x compatible substr_count that implements offset and length |
public
array
|
#
parseAttributeString( string $string,
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 |
|
protected
string
|
$_whitespace | "\x20\x09\x0D\x0A" |
#
Whitespace characters for str(c)spn. |
$_special_entity2str
|