A WordPress-centric search engine for devs and theme authors



wp_html_split ›

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

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