Öffentliche Methoden | |
tokenizeHTML ($html, $config, $context) | |
parseAttributeString ($string, $config, $context) | |
Öffentliche Methoden geerbt von HTMLPurifier_Lexer | |
__construct () | |
parseData ($string) | |
tokenizeHTML ($string, $config, $context) | |
normalize ($html, $config, $context) | |
extractBody ($html) | |
Datenfelder | |
$tracksLineNumbers = true | |
Datenfelder geerbt von HTMLPurifier_Lexer | |
$tracksLineNumbers = false | |
Geschützte Methoden | |
scriptCallback ($matches) | |
substrCount ($haystack, $needle, $offset, $length) | |
Geschützte Attribute | |
$_whitespace = "\x20\x09\x0D\x0A" | |
Geschützte Attribute geerbt von HTMLPurifier_Lexer | |
$_special_entity2str | |
Weitere Geerbte Elemente | |
Öffentliche, statische Methoden geerbt von HTMLPurifier_Lexer | |
static | create ($config) |
Geschützte, statische Methoden geerbt von HTMLPurifier_Lexer | |
static | escapeCDATA ($string) |
static | escapeCommentedCDATA ($string) |
static | removeIEConditional ($string) |
static | CDATACallback ($matches) |
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.
Definiert in Zeile 13 der Datei DirectLex.php.
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 |
Definiert in Zeile 376 der Datei DirectLex.php.
Benutzt HTMLPurifier_Lexer\parseData().
Wird benutzt von tokenizeHTML().
|
protected |
Callback function for script CDATA fudge
array | $matches,in | form of array(opening tag, contents, closing tag) |
Definiert in Zeile 31 der Datei DirectLex.php.
|
protected |
PHP 5.0.x compatible substr_count that implements offset and length
string | $haystack | |
string | $needle | |
int | $offset | |
int | $length |
Definiert in Zeile 354 der Datei DirectLex.php.
Wird benutzt von tokenizeHTML().
tokenizeHTML | ( | $html, | |
$config, | |||
$context | |||
) |
String | $html | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Definiert in Zeile 42 der Datei DirectLex.php.
Benutzt HTMLPurifier_Lexer\normalize(), parseAttributeString(), HTMLPurifier_Lexer\parseData() und substrCount().
|
protected |
Whitespace characters for str(c)spn. string
Definiert in Zeile 24 der Datei DirectLex.php.
$tracksLineNumbers = true |
bool
Definiert in Zeile 18 der Datei DirectLex.php.