\HTMLPurifier_PercentEncoder
Class that handles operations involving percent-encoding in URIs.
Synopsis
class HTMLPurifier_PercentEncoder
{
- // members
- protected array $preserve = ;
- // methods
- public void __construct()
- public Encoded encode()
- public void normalize()
Members
protected
-
$preserve
Reserved characters to preserve when using encode().
Methods
public
- __construct() — String of characters that should be preserved while using encode().
- encode() — Our replacement for urlencode, it encodes all non-reserved characters, as well as any extra characters that were instructed to be preserved.
- normalize() — Fix up percent-encoding by decoding unreserved characters and normalizing.