html_type_rss()WP 2.2.0

Displays the HTML type based on the blog setting.

The two possible values are either 'xhtml' or 'html'.

No Hooks.

Return

null. Nothing (null).

Usage

html_type_rss();

Changelog

Since 2.2.0 Introduced.

html_type_rss() code WP 6.4.3

function html_type_rss() {
	$type = get_bloginfo( 'html_type' );
	if ( str_contains( $type, 'xhtml' ) ) {
		$type = 'xhtml';
	} else {
		$type = 'html';
	}
	echo $type;
}