From 83b890f20b16993daa453c6bac2d7c0d5057b5e1 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Wed, 5 Sep 2018 21:23:11 +0100 Subject: Remove experimental if --- src/Readability.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Readability.php b/src/Readability.php index 3e168fe..debdcd5 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -710,16 +710,6 @@ class Readability $this->logger->debug(sprintf('[Get Nodes] Found DIV with a single child block element, converting to a P node. Node content is: \'%s\'', substr($node->nodeValue, 0, 128))); $node = NodeUtility::setNodeTag($node, 'p'); $elementsToScore[] = $node; - } else { - // EXPERIMENTAL - foreach ($node->getChildren() as $child) { - /** @var $child DOMNode */ - if ($child->nodeType === XML_TEXT_NODE && mb_strlen(trim($child->getTextContent())) > 0) { - $this->logger->debug(sprintf('[Get Nodes] Found DIV a text node inside, converting to a P node. Node content is: \'%s\'', substr($node->nodeValue, 0, 128))); - $newNode = $node->createNode($child, 'p'); - $child->parentNode->replaceChild($newNode, $child); - } - } } } -- cgit v1.2.3