Performs esc_url() for database usage.

Signature

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

Return

(string) The cleaned URL.

Source

function esc_url_raw( $url, $protocols = null ) {
	return esc_url( $url, $protocols, 'db' );
}
WP Trac GitHub

Link here