diff --git a/epub.php b/epub.php index 07494e7..3470fa9 100644 --- a/epub.php +++ b/epub.php @@ -463,22 +463,6 @@ $doc->loadHTML($article); $finder = new DomXPath($doc); - // strip images - /*$toremove = $finder->query('//svg'); - foreach ($toremove as $elt) - { - $elt->parentNode->removeChild($elt); - } - $toremove = $finder->query('//figure'); - foreach ($toremove as $elt) - { - $elt->parentNode->removeChild($elt); - } - $toremove = $finder->query('//span[@class="screen-reader-only"]'); - foreach ($toremove as $elt) - { - $elt->parentNode->removeChild($elt); - }*/ $result = '
' . $author . '
';