PHP 클래스 HTMLPurifier_PercentEncoder, yii

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

보호된 프로퍼티들

프로퍼티 타입 설명
$preserve Reserved characters to preserve when using encode().

공개 메소드들

메소드 설명
__construct ( boolean $preserve = false ) String of characters that should be preserved while using encode().
encode ( string $string ) : string Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
normalize ( string $string ) : string Fix up percent-encoding by decoding unreserved characters and normalizing.

메소드 상세

__construct() 공개 메소드

String of characters that should be preserved while using encode().
public __construct ( boolean $preserve = false )
$preserve boolean

encode() 공개 메소드

Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
public encode ( string $string ) : string
$string string String to be encoded
리턴 string Encoded string.

normalize() 공개 메소드

Fix up percent-encoding by decoding unreserved characters and normalizing.
public normalize ( string $string ) : string
$string string String to normalize
리턴 string

프로퍼티 상세

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

Reserved characters to preserve when using encode().
protected $preserve