wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_pre_kses_less_than › WordPress Function

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

Converts lone less than signs.

KSES already converts lone greater than signs.


Source

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