Escapes a url.
<?php
use function Qubus\Security\Helpers\esc_url;
esc_url(string $url, array $scheme = ['http', 'https'], bool $encode = false): string;
$url (string) (required) The url to be escaped.
$scheme (array) (optional) An array of acceptable schemes.
$encode (bool) (optional) Whether url params should be encoded.
(string) The escaped $url after the esc_url
filter is applied
Last Updated on August 14, 2024 by Joshua