From: Andrew Dolgov Date: Wed, 31 Jul 2013 12:41:06 +0000 (+0400) Subject: support term highlighting in cdm title X-Git-Tag: 1.10~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=34dad844147c5ee46cbdba310a36173244a0ff11;p=tt-rss.git support term highlighting in cdm title --- diff --git a/classes/feeds.php b/classes/feeds.php index 874f7678..9aa75bbe 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -561,6 +561,13 @@ class Feeds extends Handler_Protected { $reply['content'] .= ""; + if ($highlight_words && count($highlight_words > 0)) { + foreach ($highlight_words as $word) { + $line["title"] = preg_replace("/(\Q$word\E)/i", + "$1", $line["title"]); + } + } + $reply['content'] .= "