parser: remove atom <source> element
This commit is contained in:
parent
420940fa90
commit
b584460302
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue