On this page
wp_pre_kses_less_than( string $text ): string
Converts lone less than signs.
Description
KSES already converts lone greater than signs.
Parameters
$textstring Required-
Text to be converted.
Return
string Converted text.
Source
File: wp-includes/formatting.php. View all references
function wp_pre_kses_less_than( $text ) {
return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text );
}
Related
Used By
| Used By | Description |
|---|---|
| _sanitize_text_fields() wp-includes/formatting.php | Internal helper function to sanitize a string from user input or from the database. |
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_pre_kses_less_than