summaryrefslogtreecommitdiff
path: root/src/Readability.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Readability.php')
-rw-r--r--src/Readability.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php
index ab35ca4..2fe6ba5 100644
--- a/src/Readability.php
+++ b/src/Readability.php
@@ -1281,7 +1281,7 @@ class Readability
$cell = $row->firstChild;
$cell = NodeUtility::setNodeTag($cell, (array_reduce(iterator_to_array($cell->childNodes), function ($carry, $node) {
return $node->isPhrasingContent() && $carry;
- })) ? 'p' : 'div');
+ }, true)) ? 'p' : 'div');
$table->parentNode->replaceChild($cell, $table);
}
}