From 4a3919c1a35083ade3dca0a49dd9c78cd8fc4f28 Mon Sep 17 00:00:00 2001 From: July Date: Wed, 21 Aug 2024 17:05:29 -0400 Subject: [PATCH] [NPRBridge] Add missing tag and remove extra HTML elements (#4227) --- bridges/NPRBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/NPRBridge.php b/bridges/NPRBridge.php index aca9f6535ff..644ede680b3 100644 --- a/bridges/NPRBridge.php +++ b/bridges/NPRBridge.php @@ -192,9 +192,9 @@ protected function parseItem(array $item) // get tags, program/series names $item['categories'] = []; - $tags = '.tag, .program-block > a, .branding__title'; + $tags = '.tag, .program-block > a, .branding__title, article h3.slug'; foreach ($html->find($tags) as $tag) { - $item['categories'][] = $tag->innertext; + $item['categories'][] = $tag->plaintext; } $item['categories'] = array_unique($item['categories']);