diff options
author | Andrew Dolgov <[email protected]> | 2013-07-31 14:54:22 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-31 14:54:22 +0400 |
commit | d41ad03712160a7362ea0486001f59eefe79b5c2 (patch) | |
tree | 24c497d185de7fba748e160ab0ea344f0ea2dbd8 /include/functions.php | |
parent | dd90eb2c7a1164ed8924c83c13138d568db5ea4e (diff) |
note the source of highlighting routine
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |