wp_pre_kses_less_than_callback( string[] $matches ): string
Callback function used by preg_replace.
Parameters
-
$matches
string[] Required -
Populated by matches to preg_replace.
Return
string The text returned after esc_html if needed.
Source
File: wp-includes/formatting.php
.
View all references
function wp_pre_kses_less_than_callback( $matches ) {
if ( false === strpos( $matches[0], '>' ) ) {
return esc_html( $matches[0] );
}
return $matches[0];
}
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |