PHP 클래스 HTMLPurifier_EntityParser, yii

파일 보기 프로젝트 열기: yiisoft/yii

보호된 프로퍼티들

프로퍼티 타입 설명
$_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