Class HTMLPurifier_PercentEncoder

Description

Class that handles operations involving percent-encoding in URIs.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 6193)


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

Reserved characters to preserve when using encode().

  • access: protected
Methods
Constructor __construct (line 6204)

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

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

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 6251)

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

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

Documentation generated on Sun, 06 Mar 2011 00:24:10 -0500 by phpDocumentor 1.4.3