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



wp_html_split ›

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

Separate 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 );
}