Skip to content

Commit

Permalink
[HaveIBeenPwnedBridge] Convert HTML entities to characters (RSS-Bridg…
Browse files Browse the repository at this point in the history
  • Loading branch information
VerifiedJoseph authored and logmanoriginal committed Jun 28, 2019
1 parent 87496a3 commit aab6eae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/HaveIBeenPwnedBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public function collectData() {
// 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;
Expand Down

0 comments on commit aab6eae

Please sign in to comment.