diff --git a/bridges/FilterBridge.php b/bridges/FilterBridge.php index 992fe0c3..ef739de3 100644 --- a/bridges/FilterBridge.php +++ b/bridges/FilterBridge.php @@ -12,7 +12,7 @@ class FilterBridge extends FeedExpander 'url' => [ 'name' => 'Feed URL', 'type' => 'text', - 'defaultValue' => 'https://lorem-rss.herokuapp.com/feed?unit=day', + 'exampleValue' => 'https://lorem-rss.herokuapp.com/feed?unit=day', 'required' => true, ], 'filter' => [ diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index 1bac6179..c91586d7 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -308,7 +308,16 @@ abstract class FeedExpander extends BridgeAbstract $item['author'] = (string)$feedItem->author->name; } if (isset($feedItem->content)) { - $item['content'] = (string)$feedItem->content; + $contentChildren = $feedItem->content->children(); + if (count($contentChildren) > 0) { + $content = ''; + foreach ($contentChildren as $contentChild) { + $content .= $contentChild->asXML(); + } + $item['content'] = $content; + } else { + $item['content'] = (string)$feedItem->content; + } } //When "link" field is present, URL is more reliable than "id" field