API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct () | |
substituteTextEntities ($string) | |
substituteAttrEntities ($string) | |
substituteNonSpecialEntities ($string) | |
substituteSpecialEntities ($string) | |
Protected Member Functions | |
entityCallback ($matches) | |
nonSpecialEntityCallback ($matches) | |
specialEntityCallback ($matches) | |
Protected Attributes | |
$_entity_lookup | |
$_textEntitiesRegex | |
$_attrEntitiesRegex | |
$_semiOptionalPrefixRegex | |
$_substituteEntitiesRegex | |
$_special_dec2str | |
$_special_ent2dec | |
Handles referencing and derefencing character entities
__construct | ( | ) |
|
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). |
|
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). |
|
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). |
substituteAttrEntities | ( | $string | ) |
Substitute entities with the parsed equivalents. Use this on attribute contents in documents.
string | $string | String to have entities parsed. |
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. |
substituteSpecialEntities | ( | $string | ) |
Substitutes only special entities with their parsed equivalents.
@notice 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. |
substituteTextEntities | ( | $string | ) |
Substitute entities with the parsed equivalents. Use this on textual data in an HTML document (as opposed to attributes.)
string | $string | String to have entities parsed. |
|
protected |
Callback regex string for entities in attributes. @type string
|
protected |
Reference to entity lookup table. @type HTMLPurifier_EntityLookup
|
protected |
Tests if the beginning of a string is a semi-optional regex
|
protected |
Decimal to parsed string conversion table for special entities. @type array
|
protected |
Stripped entity names to decimal conversion table for special entities. @type array
|
protected |
Callback regex string for parsing entities. @type string
|
protected |
Callback regex string for entities in text. @type string