]> git.wh0rd.org - tt-rss.git/blobdiff - classes/feeditem/rss.php
remove some redundant php closing tags
[tt-rss.git] / classes / feeditem / rss.php
index 27a364b812b90bb708b09b7f24d2e0803e06c40a..a3fa7e636578bfd9ed6c3270d2baac310f226b06 100644 (file)
@@ -71,17 +71,19 @@ class FeedItem_RSS extends FeedItem_Common {
                $contentB = $this->elem->getElementsByTagName("description")->item(0);
 
                if ($contentA && !$contentB) {
-                       return $contentA->nodeValue;
+                       return $this->subtree_or_text($contentA);
                }
 
 
                if ($contentB && !$contentA) {
-                       return $contentB->nodeValue;
+                       return $this->subtree_or_text($contentB);
                }
 
                if ($contentA && $contentB) {
-                       return mb_strlen($contentA->nodeValue) > mb_strlen($contentB->nodeValue) ?
-                               $contentA->nodeValue : $contentB->nodeValue;
+                       $resultA = $this->subtree_or_text($contentA);
+                       $resultB = $this->subtree_or_text($contentB);
+
+                       return mb_strlen($resultA) > mb_strlen($resultB) ? $resultA : $resultB;
                }
        }
 
@@ -187,5 +189,4 @@ class FeedItem_RSS extends FeedItem_Common {
                return $encs;
        }
 
-}
-?>
+}
\ No newline at end of file