PHP 클래스 HTMLPurifier_Generator, yii

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

보호된 프로퍼티들

프로퍼티 타입 설명
$config Configuration for the generator

공개 메소드들

메소드 설명
__construct ( HTMLPurifier_Config $config, HTMLPurifier_Context $context )
escape ( string $string, integer $quote = null ) : string Escapes raw text data.
generateAttributes ( array $assoc_array_of_attributes, string $element = '' ) : string Generates attribute declarations from attribute array.
generateFromToken ( HTMLPurifier_Token $token ) : string Generates HTML from a single token.
generateFromTokens ( HTMLPurifier_Token[] $tokens ) : string Generates HTML from an array of tokens.
generateScriptFromToken ( HTMLPurifier_Token $token ) : string Special case processor for the contents of script tags

메소드 상세

__construct() 공개 메소드

public __construct ( HTMLPurifier_Config $config, HTMLPurifier_Context $context )
$config HTMLPurifier_Config
$context HTMLPurifier_Context

escape() 공개 메소드

Escapes raw text data.
public escape ( string $string, integer $quote = null ) : string
$string string String data to escape for HTML.
$quote integer Quoting style, like htmlspecialchars. ENT_NOQUOTES is permissible for non-attribute output.
리턴 string escaped data.

generateAttributes() 공개 메소드

Generates attribute declarations from attribute array.
public generateAttributes ( array $assoc_array_of_attributes, string $element = '' ) : string
$assoc_array_of_attributes array Attribute array
$element string Name of element attributes are for, used to check attribute minimization.
리턴 string Generated HTML fragment for insertion.

generateFromToken() 공개 메소드

Generates HTML from a single token.
public generateFromToken ( HTMLPurifier_Token $token ) : string
$token HTMLPurifier_Token HTMLPurifier_Token object.
리턴 string Generated HTML

generateFromTokens() 공개 메소드

Generates HTML from an array of tokens.
public generateFromTokens ( HTMLPurifier_Token[] $tokens ) : string
$tokens HTMLPurifier_Token[] Array of HTMLPurifier_Token
리턴 string Generated HTML

generateScriptFromToken() 공개 메소드

Special case processor for the contents of script tags
public generateScriptFromToken ( HTMLPurifier_Token $token ) : string
$token HTMLPurifier_Token HTMLPurifier_Token object.
리턴 string

프로퍼티 상세

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

Configuration for the generator
protected $config