WordPress at a glance

esc_url_raw() WP 1.0

Performs esc_url() for database usage.

Works based on: esc_url()
✈ 1 time = 0.000071s = very fast | 50000 times = 1.60s = fast

No Hooks.

Return

String. The cleaned URL.

Usage

esc_url_raw( $url, $protocols );
$url(string) (required)
The URL to be cleaned.
$protocols(array)
An array of acceptable protocols.
Default: null

Code of esc_url_raw: wp-includes/formatting.php VER 4.9.8

<?php
function esc_url_raw( $url, $protocols = null ) {
	return esc_url( $url, $protocols, 'db' );
}

Related Functions

From tag: esc_ (clean validate sanitize)

More from category: Sanitizing, Escaping

No comments
    Hello, !     Log In . Register