summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2018-09-05 21:23:11 +0100
committerAndres Rey <[email protected]>2018-09-05 21:23:11 +0100
commit83b890f20b16993daa453c6bac2d7c0d5057b5e1 (patch)
tree01905656837f8cd1ea43f595c3cc9c7c1a4682bc
parent14871f80669d3f299407ce4d0e35e67fa90bc1a5 (diff)
Remove experimental if
-rw-r--r--src/Readability.php10
1 files changed, 0 insertions, 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);
- }
- }
}
}