wp_html_split() – Separate HTML elements and comments from the text.

You appear to be a bot. Output may be restricted

Description

Separates HTML elements and comments from the text.

Usage

$string[] = wp_html_split( $input );

Parameters

$input
( string ) required – The text which has to be formatted.

Returns

string[] Array of the formatted text.

Source

File name: wordpress/wp-includes/formatting.php
Lines:

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

 View on GitHub View on Trac