wp_kses_bad_protocol_once

SummerySummery

Sanitizes content from bad protocols and other characters.

Syntax

wp_kses_bad_protocol_once( string $string, string[] $allowed_protocols,  $count = 1 )

DescriptionDescription

This function searches for URL protocols at the beginning of the string, while handling whitespace and HTML entities.

ParametersParameters

$string

(string) (Required) Content to check for bad protocols.

$allowed_protocols

(string[]) (Required) Array of allowed URL protocols.

ReturnReturn

(string) Sanitized content.

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
1.0.0 Introduced.
Scroll to Top