wp_kses_bad_protocol_once
wp_kses_bad_protocol_once ( $content, $allowed_protocols, $count = 1 )
Parameters:- (string) content Content to check for bad protocols.
- (string[]) allowed_protocols Array of allowed URL protocols.
- (int) count Depth of call recursion to this function.
Returns:- (string) Sanitized content.
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Sanitizes content from bad protocols and other characters.This function searches for URL protocols at the beginning of the string, while
handling whitespace and HTML entities.