remove dead code
This commit is contained in:
parent
0b3c66b99b
commit
4b4179cf8a
16
epub.php
16
epub.php
|
@ -463,22 +463,6 @@
|
||||||
$doc->loadHTML($article);
|
$doc->loadHTML($article);
|
||||||
$finder = new DomXPath($doc);
|
$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 = '<h1>' . $title . '</h1>';
|
$result = '<h1>' . $title . '</h1>';
|
||||||
$result .= '<p>' . $author . '</p>';
|
$result .= '<p>' . $author . '</p>';
|
||||||
|
|
Loading…
Reference in New Issue