Class HTMLPurifier_PercentEncoder

Description

Class that handles operations involving percent-encoding in URIs.

Class that handles operations involving percent-encoding in URIs.

Located in /library/HTMLPurifier/PercentEncoder.php (line 11)


	
			
Variable Summary
mixed $preserve
Method Summary
HTMLPurifier_PercentEncoder __construct ([ $preserve = false])
Encoded encode ($string $string)
void normalize ($string $string)
Variables
mixed $preserve = array() (line 17)

Reserved characters to preserve when using encode().

Reserved characters to preserve when using encode().

  • access: protected
Methods
Constructor __construct (line 22)

String of characters that should be preserved while using encode().

String of characters that should be preserved while using encode().

  • access: public
HTMLPurifier_PercentEncoder __construct ([ $preserve = false])
  • $preserve
encode (line 50)

Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.

Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.

  • return: string.
  • access: public
Encoded encode ($string $string)
  • $string $string: String to be encoded
normalize (line 69)

Fix up percent-encoding by decoding unreserved characters and normalizing.

Fix up percent-encoding by decoding unreserved characters and normalizing.

  • access: public
void normalize ($string $string)
  • $string $string: String to normalize

Documentation generated on Thu, 19 Jun 2008 18:49:52 -0400 by phpDocumentor 1.4.2