html_type_rss

Display the HTML type based on the blog setting.

Description

html_type_rss(); 

The two possible values are either xhtml or html..


Usage

  1. if ( !function_exists( 'html_type_rss' ) ) { 
  2. require_once ABSPATH . WPINC . '/feed.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = html_type_rss(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/feed.php  
  1. function html_type_rss() { 
  2. $type = get_bloginfo('html_type'); 
  3. if (strpos($type, 'xhtml') !== false) 
  4. $type = 'xhtml'; 
  5. else 
  6. $type = 'html'; 
  7. echo $type;