From d0ebe7fc277aefc2d05927c27444c92391e47ae6 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Sun, 28 Mar 2010 23:34:39 +0000
Subject: [PATCH] #750168 jtr: _parser_common_syndication_title does not strip
 html tags before   constructing a title.

---
 CHANGELOG.txt                           | 2 ++
 libraries/common_syndication_parser.inc | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 3744d693..a9001bf3 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -4,6 +4,8 @@
 Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
 ----------------------------------
 
+- #750168 jtr: _parser_common_syndication_title does not strip html tags before
+  constructing a title.
 - #648080 pvhee: FeedsNodeProcessor - static caching of mapping targets makes
   mapping fail with multiple feed configurations.
 - #735444 Doug Preble: PubSubHubbub - Fix "Subscription refused by callback URL"
diff --git a/libraries/common_syndication_parser.inc b/libraries/common_syndication_parser.inc
index a1d8254f..1dc6d18a 100644
--- a/libraries/common_syndication_parser.inc
+++ b/libraries/common_syndication_parser.inc
@@ -520,7 +520,7 @@ function _parser_common_syndication_link($links) {
 function _parser_common_syndication_title($title, $body = FALSE) {
   if (empty($title) && !empty($body)) {
     // Explode to words and use the first 3 words.
-    $words = preg_split("/[\s,]+/", $body);
+    $words = preg_split("/[\s,]+/", strip_tags($body));
     $title = $words[0] .' '. $words[1] .' '. $words[2];
   }
   return $title;
-- 
GitLab