function wp_kses_split2( $content,
$allowed_html,
$allowed_protocols ) { $content =
wp_kses_stripslashes( $content );
// It matched a ">" character.
if ( !
str_starts_with( $content, '<'
) ) { return '>';
} // Allow HTML comments.
if ( str_starts_with( $content, '<!--'
) ) { $content =
str_replace( array
( '<!--', '-->'
), '',
$content );
while ( ( $newstring =
wp_kses( $content,
$allowed_html,
$allowed_protocols ) ) !=
$content ) { $content =
$newstring;
}