转换单独少于标志。
原型
wp_pre_kses_less_than( string $text )
描述
KSES已经变得比标志更大。
参数
$text
(string)
(Required)
要转换的文本。
返回值
(string)
转换后的文字。
源文件
路径:wp-includes/formatting.php
<?php
...
function wp_pre_kses_less_than( $text ) {
return preg_replace_callback('%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text);
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/wp_pre_kses_less_than/