wp_pre_kses_less_than_callback( array $matches )

Callback function used by preg_replace.


Description Description


Parameters Parameters

$matches

(array) (Required) Populated by matches to preg_replace.


Top ↑

Return Return

(string) The text returned after esc_html if needed.


Top ↑

Source Source

File: wp-includes/formatting.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.