Uses
Uses | Description |
---|---|
wp-includes/formatting.php: esc_html() | Escaping for HTML blocks. |
Callback function used by preg_replace.
(array) (Required) Populated by matches to preg_replace.
(string) The text returned after esc_html if needed.
File: wp-includes/formatting.php
function wp_pre_kses_less_than_callback( $matches ) { if ( false === strpos( $matches[0], '>' ) ) { return esc_html( $matches[0] ); } return $matches[0]; }
Version | Description |
---|---|
2.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_pre_kses_less_than_callback