Öffentliche Methoden | |
substituteNonSpecialEntities ($string) | |
substituteSpecialEntities ($string) | |
Geschützte Methoden | |
nonSpecialEntityCallback ($matches) | |
specialEntityCallback ($matches) | |
Geschützte Attribute | |
$_entity_lookup | |
$_substituteEntitiesRegex | |
$_special_dec2str | |
$_special_ent2dec | |
Handles referencing and derefencing character entities
Definiert in Zeile 10 der Datei EntityParser.php.
|
protected |
Callback function for substituteNonSpecialEntities() that does the work.
array | $matches | PCRE matches array, with 0 the entire match, and either index 1, 2 or 3 set with a hex value, dec value, or string (respectively). |
Definiert in Zeile 79 der Datei EntityParser.php.
Benutzt HTMLPurifier_EntityLookup\instance() und HTMLPurifier_Encoder\unichr().
|
protected |
Callback function for substituteSpecialEntities() that does the work.
This callback has same syntax as nonSpecialEntityCallback().
array | $matches | PCRE-style matches array, with 0 the entire match, and either index 1, 2 or 3 set with a hex value, dec value, or string (respectively). |
Definiert in Zeile 135 der Datei EntityParser.php.
substituteNonSpecialEntities | ( | $string) |
Substitutes non-special entities with their parsed equivalents. Since running this whenever you have parsed character is t3h 5uck, we run it before everything else.
string | $string | String to have non-special entities parsed. |
Definiert in Zeile 60 der Datei EntityParser.php.
substituteSpecialEntities | ( | $string) |
Substitutes only special entities with their parsed equivalents.
We try to avoid calling this function because otherwise, it would have to be called a lot (for every parsed section).
string | $string | String to have non-special entities parsed. |
Definiert in Zeile 116 der Datei EntityParser.php.
|
protected |
Reference to entity lookup table. HTMLPurifier_EntityLookup
Definiert in Zeile 17 der Datei EntityParser.php.
|
protected |
Decimal to parsed string conversion table for special entities. array
Definiert in Zeile 31 der Datei EntityParser.php.
|
protected |
Stripped entity names to decimal conversion table for special entities. array
Definiert in Zeile 44 der Datei EntityParser.php.
|
protected |
Callback regex string for parsing entities. string
Definiert in Zeile 23 der Datei EntityParser.php.