function wp_kses( $content,
$allowed_html,
$allowed_protocols = array
() ) { if ( empty( $allowed_protocols ) ) { $allowed_protocols =
wp_allowed_protocols();
} $content =
wp_kses_no_null( $content, array
( 'slash_zero' => 'keep'
) );
$content =
wp_kses_normalize_entities( $content );
$content =
wp_kses_hook( $content,
$allowed_html,
$allowed_protocols );
return wp_kses_split( $content,
$allowed_html,
$allowed_protocols );
}/**
* Filters one HTML attribute and ensures its value is allowed.
*
* This function can escape data in some situations where `wp_kses()` must strip the whole attribute.
*
* @since 4.2.3
*
* @param string $attr The 'whole' attribute, including name and value.
* @param string $element The HTML element name to which the attribute belongs.
* @return string Filtered attribute.
*/