Commit bab92271 authored by Dries's avatar Dries

- Bugfix: strip all HTML from the feed description.

parent dc8a68ea
......@@ -761,7 +761,7 @@ function format_rss_channel($title, $link, $description, $items, $language = "en
$output = "<channel>\n";
$output .= " <title>". drupal_specialchars(strip_tags($title)) ."</title>\n";
$output .= " <link>". drupal_specialchars(strip_tags($link)) ."</link>\n";
$output .= " <description>". drupal_specialchars($description) ."</description>\n";
$output .= " <description>". drupal_specialchars(strip_tags($description)) ."</description>\n";
$output .= " <language>". drupal_specialchars(strip_tags($language)) ."</language>\n";
foreach ($args as $key => $value) {
$output .= " <$key>". drupal_specialchars(strip_tags($value)) ."</$key>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment