From: Andrew Dolgov Date: Wed, 31 Jul 2013 10:54:22 +0000 (+0400) Subject: note the source of highlighting routine X-Git-Tag: 1.10~56 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d41ad03712160a7362ea0486001f59eefe79b5c2;p=tt-rss.git note the source of highlighting routine --- diff --git a/include/functions.php b/include/functions.php index 6ceb20ad..4d24d0e2 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2865,6 +2865,8 @@ if ($highlight_words) { foreach ($highlight_words as $word) { + // http://stackoverflow.com/questions/4081372/highlight-keywords-in-a-paragraph + $elements = $xpath->query('//*[contains(.,"'.$word.'")]'); foreach ($elements as $element) {