Avoid error with  

Fix #5
This commit is contained in:
Jeremy Benoist
2015-09-18 19:10:48 +02:00
parent 2b5af601d5
commit 175196d6c2
2 changed files with 50 additions and 1 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ class Readability
// add extra text to iframe tag to avoid an auto-closing iframe and then break the html code
if ($iframeCount) {
$iframe = $articleParagraphs->item($i)->getElementsByTagName('iframe');
$iframe->item(0)->nodeValue = ' ';
$iframe->item(0)->nodeValue = ' ';
$articleParagraphs->item($i)->parentNode->replaceChild($iframe->item(0), $articleParagraphs->item($i));
}