- Fixed '" should be &' problem in feeds.

3-00
Dries Buytaert 2001-07-18 20:21:16 +00:00
parent a2fcf24980
commit 8f74184a58
1 changed files with 5 additions and 5 deletions

View File

@ -92,10 +92,10 @@ function format_info($body, $block) {
function format_rss_channel($title, $link, $description, $items, $language = "en") {
$output .= "<channel>\n";
$output .= " <title>". strip_tags($title) ."</title>\n";
$output .= " <link>". strip_tags($link) ."</link>\n";
$output .= " <title>". htmlentities(strip_tags($title)) ."</title>\n";
$output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n";
$output .= " <description>". htmlentities($description) ."</description>\n";
$output .= " <language>$language</language>\n";
$output .= " <language>". htmlentities(strip_tags($language)) ."</language>\n";
$output .= $items;
$output .= "</channel>\n";
@ -104,8 +104,8 @@ function format_rss_channel($title, $link, $description, $items, $language = "en
function format_rss_item($title, $link, $description) {
$output .= "<item>\n";
$output .= " <title>". strip_tags($title) ."</title>\n";
$output .= " <link>". strip_tags($link) ."</link>\n";
$output .= " <title>". htmlentities(strip_tags($title)) ."</title>\n";
$output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n";
$output .= " <description>". htmlentities($description) ."</description>\n";
$output .= "</item>\n";