WordPress at a glance
function is not described

wp_pre_kses_less_than_callback() WP 2.3.0

Callback function used by preg_replace.

No Hooks.


String. The text returned after esc_html if needed.


wp_pre_kses_less_than_callback( $matches );
$matches(array) (required)
Populated by matches to preg_replace.

Code of wp pre kses less than callback: wp-includes/formatting.php VER 5.1.1

function wp_pre_kses_less_than_callback( $matches ) {
	if ( false === strpos( $matches[0], '>' ) ) {
		return esc_html( $matches[0] );
	return $matches[0];