remove dead code

This commit is contained in:
quenousimporte 2024-08-28 16:55:19 +02:00
parent 0b3c66b99b
commit 4b4179cf8a
1 changed files with 0 additions and 16 deletions

View File

@ -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>';