wp_html_split( string $input )

Separate HTML elements and comments from the text.


Description Description


Parameters Parameters

$input

(string) (Required) The text which has to be formatted.


Top ↑

Return Return

(array) The formatted text.


Top ↑

Source Source

File: wp-includes/formatting.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.2.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.