wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_html_split › WordPress Function

Since4.2.4
已弃用n/a
wp_html_split ( $input )
参数:
  • (string) $input The text which has to be formatted.
    Required: Yes
返回:
  • (string[]) Array of the formatted text.
定义在:
文档:

Separates HTML elements and comments from the text.



源码

function wp_html_split( $input ) {
	return preg_split( get_html_split_regex(), $input, -1, PREG_SPLIT_DELIM_CAPTURE );
}