$_entity_lookup
$_entity_lookup
Reference to entity lookup table.
Handles referencing and derefencing character entities
substituteNonSpecialEntities(string $string) : 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. |
Parsed string.
entityCallback(array $matches) : string
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). |
Replacement string.
nonSpecialEntityCallback(array $matches) : string
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). |
Replacement string.
specialEntityCallback(array $matches) : string
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). |
Replacement string.