esc_url_raw() – Sanitizes a URL for database or redirect usage.
You appear to be a bot. Output may be restricted
Description
Sanitizes a URL for database or redirect usage.
This function is an alias for sanitize_url().
Usage
$string = esc_url_raw( $url, $protocols );
Parameters
- $url
- ( string ) required – The URL to be cleaned.
- $protocols
- ( string[] ) optional – Optional. An array of acceptable protocols. Defaults to return value of wp_allowed_protocols().
Returns
string The cleaned URL after sanitize_url() is run.
Source
File name: wordpress/wp-includes/formatting.php
Lines:
1 to 3 of 3
function esc_url_raw( $url, $protocols = null ) { return sanitize_url( $url, $protocols ); }