parser: remove atom <source> element
This commit is contained in:
parent
420940fa90
commit
b584460302
|
@ -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 <source> element
|
||||
if ($source)
|
||||
$elem->removeChild($source);
|
||||
}
|
||||
|
||||
function get_author() {
|
||||
|
|
Loading…
Reference in New Issue