A WordPress-centric search engine for devs and theme authors



wp_pre_kses_less_than ›

Since2.3.0
Deprecatedn/a
wp_pre_kses_less_than ( $text )
Parameters:
  • (string) $text Text to be converted.
    Required: Yes
Returns:
  • (string) Converted text.
Defined at:
Codex:

Convert lone less than signs.

KSES already converts lone greater than signs.



Source

function wp_pre_kses_less_than( $text ) {
	return preg_replace_callback('%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text);
}