PHP Класс HTMLPurifier_EntityParser, yii

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_entity_lookup Reference to entity lookup table.
$_special_dec2str Decimal to parsed string conversion table for special entities.
$_special_ent2dec Stripped entity names to decimal conversion table for special entities.
$_substituteEntitiesRegex Callback regex string for parsing 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.
substituteSpecialEntities ( string $string ) : string Substitutes only special entities with their parsed equivalents.

Защищенные методы

Метод Описание
nonSpecialEntityCallback ( array $matches ) : string Callback function for substituteNonSpecialEntities() that does the work.
specialEntityCallback ( array $matches ) : string Callback function for substituteSpecialEntities() that does the work.

Описание методов

nonSpecialEntityCallback() защищенный Метод

Callback function for substituteNonSpecialEntities() that does the work.
protected nonSpecialEntityCallback ( array $matches ) : string
$matches array 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).
Результат string Replacement string.

specialEntityCallback() защищенный Метод

This callback has same syntax as nonSpecialEntityCallback().
protected specialEntityCallback ( array $matches ) : string
$matches array 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).
Результат string Replacement string.

substituteNonSpecialEntities() публичный Метод

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.
public substituteNonSpecialEntities ( string $string ) : string
$string string String to have non-special entities parsed.
Результат string Parsed string.

substituteSpecialEntities() публичный Метод

Substitutes only special entities with their parsed equivalents.
public substituteSpecialEntities ( string $string ) : string
$string string String to have non-special entities parsed.
Результат string Parsed string.

Описание свойств

$_entity_lookup защищенное свойство

Reference to entity lookup table.
protected $_entity_lookup

$_special_dec2str защищенное свойство

Decimal to parsed string conversion table for special entities.
protected $_special_dec2str

$_special_ent2dec защищенное свойство

Stripped entity names to decimal conversion table for special entities.
protected $_special_ent2dec

$_substituteEntitiesRegex защищенное свойство

Callback regex string for parsing entities.
protected $_substituteEntitiesRegex