Skip to content
Snippets Groups Projects
Commit d0ebe7fc authored by Alex Barth's avatar Alex Barth
Browse files

#750168 jtr: _parser_common_syndication_title does not strip html tags before

  constructing a title.
parent b529ed3b
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx 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 - #648080 pvhee: FeedsNodeProcessor - static caching of mapping targets makes
mapping fail with multiple feed configurations. mapping fail with multiple feed configurations.
- #735444 Doug Preble: PubSubHubbub - Fix "Subscription refused by callback URL" - #735444 Doug Preble: PubSubHubbub - Fix "Subscription refused by callback URL"
......
...@@ -520,7 +520,7 @@ function _parser_common_syndication_link($links) { ...@@ -520,7 +520,7 @@ function _parser_common_syndication_link($links) {
function _parser_common_syndication_title($title, $body = FALSE) { function _parser_common_syndication_title($title, $body = FALSE) {
if (empty($title) && !empty($body)) { if (empty($title) && !empty($body)) {
// Explode to words and use the first 3 words. // 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]; $title = $words[0] .' '. $words[1] .' '. $words[2];
} }
return $title; return $title;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment