PHP 클래스 HTMLPurifier_Lexer_DirectLex, yii

A pure PHP parser, DirectLex has absolutely no dependencies, making it a reasonably good default for PHP4. Written with efficiency in mind, it can be four times faster than HTMLPurifier_Lexer_PEARSax3, although it pales in comparison to HTMLPurifier_Lexer_DOMLex.
상속: extends HTMLPurifier_Lexer
파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$tracksLineNumbers

보호된 프로퍼티들

프로퍼티 타입 설명
$_whitespace Whitespace characters for str(c)spn.

공개 메소드들

메소드 설명
parseAttributeString ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : array Takes the inside of an HTML tag and makes an assoc array of attributes.
tokenizeHTML ( String $html, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : array | HTMLPurifier_Token[]

보호된 메소드들

메소드 설명
scriptCallback ( $matches ) : string Callback function for script CDATA fudge
substrCount ( string $haystack, string $needle, integer $offset, integer $length ) : integer PHP 5.0.x compatible substr_count that implements offset and length

메소드 상세

parseAttributeString() 공개 메소드

Takes the inside of an HTML tag and makes an assoc array of attributes.
public parseAttributeString ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : array
$string string Inside of tag excluding name.
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 array Assoc array of attributes.

scriptCallback() 보호된 메소드

Callback function for script CDATA fudge
protected scriptCallback ( $matches ) : string
리턴 string

substrCount() 보호된 메소드

PHP 5.0.x compatible substr_count that implements offset and length
protected substrCount ( string $haystack, string $needle, integer $offset, integer $length ) : integer
$haystack string
$needle string
$offset integer
$length integer
리턴 integer

tokenizeHTML() 공개 메소드

public tokenizeHTML ( String $html, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : array | HTMLPurifier_Token[]
$html String
$config HTMLPurifier_Config
$context HTMLPurifier_Context
리턴 array | HTMLPurifier_Token[]

프로퍼티 상세

$_whitespace 보호되어 있는 프로퍼티

Whitespace characters for str(c)spn.
protected $_whitespace

$tracksLineNumbers 공개적으로 프로퍼티

public $tracksLineNumbers