From: Andrew Dolgov Date: Tue, 25 Jun 2013 10:43:59 +0000 (+0400) Subject: parser: remove atom element X-Git-Tag: 1.9~90 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b584460302b674c8e9c52718d0e6682e427a913a;p=tt-rss.git parser: remove atom element --- diff --git a/classes/feeditem/common.php b/classes/feeditem/common.php index 0787a42c..f8fd3c62 100644 --- a/classes/feeditem/common.php +++ b/classes/feeditem/common.php @@ -8,6 +8,12 @@ abstract class FeedItem_Common extends FeedItem { $this->elem = $elem; $this->xpath = $xpath; $this->doc = $doc; + + $source = $elem->getElementsByTagName("source")->item(0); + + // we don't need element + if ($source) + $elem->removeChild($source); } function get_author() {