From: Andrew Dolgov Date: Sun, 14 Jul 2013 17:55:14 +0000 (+0400) Subject: fix filter content previews showing html content X-Git-Tag: 1.9~23 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=74175e6ae31aaab56f45468b3f809cb71d74b48b;p=tt-rss.git fix filter content previews showing html content --- diff --git a/classes/pref/filters.php b/classes/pref/filters.php index c4d6fea1..18d1f383 100644 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -96,9 +96,9 @@ class Pref_Filters extends Handler_Protected { print "
"; print ""; - $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...'); - while ($line = $this->dbh->fetch_assoc($result)) { + $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...'); + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) { $line = $p->hook_query_headlines($line, 100); } @@ -122,7 +122,7 @@ class Pref_Filters extends Handler_Protected { print " ("; print "" . $feed_title . ""; print "): "; - print "" . $line["content_preview"] . ""; + print "" . $content_preview . ""; print " " . mb_substr($line["date_entered"], 0, 16); print "";