From c39e642877857fc9819b74a20c562f77718d07e7 Mon Sep 17 00:00:00 2001 From: Joseph Date: Fri, 28 Jun 2019 14:08:56 +0000 Subject: [PATCH] [HaveIBeenPwnedBridge] Convert HTML entities to characters (#1198) --- bridges/HaveIBeenPwnedBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/HaveIBeenPwnedBridge.php b/bridges/HaveIBeenPwnedBridge.php index f256623a..caf73f31 100644 --- a/bridges/HaveIBeenPwnedBridge.php +++ b/bridges/HaveIBeenPwnedBridge.php @@ -52,7 +52,8 @@ class HaveIBeenPwnedBridge extends BridgeAbstract { // Remove permalink $breach->find('p', 1)->find('a', 0)->outertext = ''; - $item['title'] = $breach->find('h3', 0)->plaintext . ' - ' . $accounts[1] . ' breached accounts'; + $item['title'] = html_entity_decode($breach->find('h3', 0)->plaintext, ENT_QUOTES) + . ' - ' . $accounts[1] . ' breached accounts'; $item['dateAdded'] = strtotime($dateAdded[1]); $item['breachDate'] = strtotime($breachDate[1]); $item['uri'] = self::URI . '/PwnedWebsites' . $permalink;