From d41ad03712160a7362ea0486001f59eefe79b5c2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 31 Jul 2013 14:54:22 +0400 Subject: note the source of highlighting routine --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/functions.php b/include/functions.php index 6ceb20adc..4d24d0e26 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) { -- cgit v1.2.3