wp_pre_kses_less_than()
Converts lone less than signs.
KSES already converts lone greater than signs.
No Hooks.
Return
String
. Converted text.
Usage
wp_pre_kses_less_than( $content );
- $content(string) (required)
- Text to be converted.
Changelog
Since 2.3.0 | Introduced. |
wp_pre_kses_less_than() wp pre kses less than code WP 6.7.1
function wp_pre_kses_less_than( $content ) { return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $content ); }