|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class that handles operations involving percent-encoding in URIs. More...
Collaboration diagram for HTMLPurifier_PercentEncoder:Public Member Functions | |
| __construct ($preserve=false) | |
| String of characters that should be preserved while using encode(). More... | |
| encode ($string) | |
| Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved. More... | |
| normalize ($string) | |
| Fix up percent-encoding by decoding unreserved characters and normalizing. More... | |
Protected Attributes | |
| $preserve = array() | |
| Reserved characters to preserve when using encode(). More... | |
Class that handles operations involving percent-encoding in URIs.
Definition at line 11 of file PercentEncoder.php.
| HTMLPurifier_PercentEncoder::__construct | ( | $preserve = false | ) |
String of characters that should be preserved while using encode().
| bool | $preserve |
Definition at line 24 of file PercentEncoder.php.
References $preserve.
| HTMLPurifier_PercentEncoder::encode | ( | $string | ) |
Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
| string | $string | String to be encoded |
Definition at line 59 of file PercentEncoder.php.
References $ret.
| HTMLPurifier_PercentEncoder::normalize | ( | $string | ) |
Fix up percent-encoding by decoding unreserved characters and normalizing.
| string | $string | String to normalize |
Definition at line 80 of file PercentEncoder.php.
|
protected |
Reserved characters to preserve when using encode().
@type array
Definition at line 18 of file PercentEncoder.php.
Referenced by __construct().