From 74175e6ae31aaab56f45468b3f809cb71d74b48b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 14 Jul 2013 21:55:14 +0400 Subject: [PATCH] fix filter content previews showing html content --- classes/pref/filters.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ""; -- 2.39.2