From b584460302b674c8e9c52718d0e6682e427a913a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Jun 2013 14:43:59 +0400 Subject: [PATCH] parser: remove atom element --- classes/feeditem/common.php | 6 ++++++ 1 file changed, 6 insertions(+) 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() { -- 2.39.5