WP_HTML_Tag_Processor::__construct( string $html )

In this article

Constructor.

Parameters

$htmlstringrequired
HTML to process.

Source

public function __construct( $html ) {
	if ( ! is_string( $html ) ) {
		_doing_it_wrong(
			__METHOD__,
			__( 'The HTML parameter must be a string.' ),
			'6.9.0'
		);
		$html = '';
	}
	$this->html = $html;
}

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

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