Dompdf\Helpers::encodeURI
Encodes a Uniform Resource Identifier (URI) by replacing non-alphanumeric characters with a percent (%) sign followed by two hex digits, excepting characters in the URI reserved character set.
Assumes that the URI is a complete URI, so does not encode reserved characters that have special meaning in the URI. Simulates the encodeURI function available in JavaScript https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI Source: http://stackoverflow.com/q/4929584/264628
Signature
public function encodeURI(string
$uri )
Parameters
$uri
— string- The URI to encode
Returns
- string
- The original URL with special characters encoded