From 35ac1d76b2aab36e9d486a44e28936bc806370e2 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Tue, 13 Oct 2015 00:37:55 +0200 Subject: [PATCH] [Numerama] fix undecoded entity on title --- bridges/NumeramaBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/NumeramaBridge.php b/bridges/NumeramaBridge.php index 0d26e6b..b53ed7a 100644 --- a/bridges/NumeramaBridge.php +++ b/bridges/NumeramaBridge.php @@ -34,7 +34,7 @@ class NumeramaBridge extends BridgeAbstract{ foreach($html->find('item') as $element) { if($limit < 5) { $item = new \Item(); - $item->title = NumeramaStripCDATA($element->find('title', 0)->innertext); + $item->title = html_entity_decode(NumeramaStripCDATA($element->find('title', 0)->innertext)); $item->uri = NumeramaStripCDATA($element->find('guid', 0)->plaintext); $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext); $item->content = NumeramaExtractContent($item->uri);