Uses
Uses | Description |
---|---|
wp-includes/formatting.php: get_html_split_regex() | Retrieve the regular expression for an HTML element. |
Separate HTML elements and comments from the text.
(string) (Required) The text which has to be formatted.
(string[]) Array of the formatted text.
File: wp-includes/formatting.php
function wp_html_split( $input ) { return preg_split( get_html_split_regex(), $input, -1, PREG_SPLIT_DELIM_CAPTURE ); }
Version | Description |
---|---|
4.2.4 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_html_split