Summery Summery
Removes any invalid control characters in a text string.
Syntax Syntax
Description Description
Also removes any instance of the \0 string.
Source Source
File: wp-includes/kses.php
* @since 1.0.0
*
* @param string $string Content to filter bad protocols from.
* @param string[] $allowed_protocols Array of allowed URL protocols.
* @return string Filtered content.
*/
function wp_kses_bad_protocol( $string, $allowed_protocols ) {
$string = wp_kses_no_null( $string );
$iterations = 0;
do {
$original_string = $string;