From bab922715d6ce6216fabfc0bec8cd19242838c4e Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 24 Apr 2004 16:25:31 +0000
Subject: [PATCH] - Bugfix: strip all HTML from the feed description.

---
 includes/common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/common.inc b/includes/common.inc
index 547f50bf511b..9a78e33655c7 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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";
-- 
GitLab