PHP 클래스 HTMLPurifier_Lexer, yii

파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$tracksLineNumbers If it does, set to true.

보호된 프로퍼티들

프로퍼티 타입 설명
$_special_entity2str Most common entity to raw value conversion table for special entities.

공개 메소드들

메소드 설명
__construct ( ) -- CONVENIENCE MEMBERS ---------------------------------------------
create ( HTMLPurifier_Config $config ) : HTMLPurifier_Lexer Retrieves or sets the default Lexer as a Prototype Factory.
extractBody ( $html ) Takes a string of HTML (fragment or document) and returns the content
normalize ( string $html, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : string Takes a piece of HTML and normalizes it by converting entities, fixing encoding, extracting bits, and other good stuff.
parseData ( string $string ) : string Parses special entities into the proper characters.
tokenizeHTML ( $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_Token[] Lexes an HTML string into tokens.

보호된 메소드들

메소드 설명
CDATACallback ( array $matches ) : string Callback function for escapeCDATA() that does the work.
escapeCDATA ( string $string ) : string Translates CDATA sections into regular sections (through escaping).
escapeCommentedCDATA ( string $string ) : string Special CDATA case that is especially convoluted for