From 7252a899142974e1d0e1f8ade61137f4075d013e Mon Sep 17 00:00:00 2001 From: John S Long Date: Sat, 1 Oct 2022 23:46:04 -0500 Subject: [PATCH] [LWNprevBridge] Fix article content parsing (#3078) --- bridges/LWNprevBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/LWNprevBridge.php b/bridges/LWNprevBridge.php index 358f841a..4817380e 100644 --- a/bridges/LWNprevBridge.php +++ b/bridges/LWNprevBridge.php @@ -99,7 +99,7 @@ EOD; if ( !$node || ( $node->nodeType !== XML_TEXT_NODE && - $node->nodeName === 'h2' || ( + $node->nodeName === 'h3' || ( !is_null($node->attributes) && !is_null($class = $node->attributes->getNamedItem('class')) && in_array($class->nodeValue, ['Cat1HL','Cat2HL'])