On this page
function format_rss_item
format_rss_item($title, $link, $description, $args = array())
Formats a single RSS item.
Arbitrary elements may be added using the $args associative array.
Related topics
File
- includes/common.inc, line 1752
- Common functions that many Drupal modules will need to reference.
Code
function format_rss_item($title, $link, $description, $args = array()) {
$output = "<item>\n";
$output .= ' <title>' . check_plain($title) . "</title>\n";
$output .= ' <link>' . check_url($link) . "</link>\n";
$output .= ' <description>' . check_plain($description) . "</description>\n";
$output .= format_xml_elements($args);
$output .= "</item>\n";
return $output;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/format_rss_item/7.x