Escape::url PHP Method

url() public static method

This can be used to put untrusted data into HTTP GET parameter values. This should not be used to escape an entire URI. link
public static url ( string $string ) : string
$string string
return string
    public static function url($string)
    {
        return rawurlencode($string);
    }