[LWNprevBridge] Fix article content parsing (#3078)

This commit is contained in:
John S Long 2022-10-01 23:46:04 -05:00 committed by GitHub
parent 3198a48589
commit 7252a89914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'])