wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_html_split › WordPress Function

Since4.2.4
Deprecatedn/a
wp_html_split ( $input )
Parameters:
  • (string) $input The text which has to be formatted.
    Required: Yes
Returns:
  • (string[]) Array of the formatted text.
Defined at:
Codex:

Separates HTML elements and comments from the text.



Source

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