format_rss_item
includes/common.inc, строка 1005
- Версии
- 5 – 6
format_rss_item($title, $link, $description, $args = array())
Format a single RSS item.
Arbitrary elements may be added using the $args
associative array.
Связанные темы
Код
<?php
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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии