Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
//
// EntityClean plugin for TT-RSS
// 2017 Pseudocode (https://www.pseudocode.eu)
// © 2017 Pseudocode (https://www.pseudocode.eu)
//
// Released through GitHub (https://github.com/pseudocoder/tt-rss-entityclean) under the Apache 2.0 license
//
Expand Down Expand Up @@ -282,7 +282,9 @@ function hook_feed_fetched($feed_data) {
"/&spades;/i" => "&#9824;",
"/&clubs;/i" => "&#9827;",
"/&hearts;/i" => "&#9829;",
"/&diams;/i" => "&#9830;"
"/&diams;/i" => "&#9830;",
"/&(?!#?[a-z0-9]+;)/i" => "&amp;"

];

return preg_replace(array_keys($replace), array_values($replace), $feed_data);
Expand Down