From 4b4179cf8ada6e656e2d08638129c0bf6ca5b288 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 28 Aug 2024 16:55:19 +0200 Subject: [PATCH] remove dead code --- epub.php | 16 ---------------- 1 file changed, 16 deletions(-) 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 = '

' . $title . '

'; $result .= '

' . $author . '

';