wp_pre_kses_less_than( string $text )
Convert lone less than signs.
Description
KSES already converts lone greater than signs.
Parameters
- $text
-
(string) (Required) Text to be converted.
Return
(string) Converted text.
Source
File: wp-includes/formatting.php
function wp_pre_kses_less_than( $text ) { return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text ); }
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_pre_kses_less_than