summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-31 14:54:22 +0400
committerAndrew Dolgov <[email protected]>2013-07-31 14:54:22 +0400
commitd41ad03712160a7362ea0486001f59eefe79b5c2 (patch)
tree24c497d185de7fba748e160ab0ea344f0ea2dbd8 /include
parentdd90eb2c7a1164ed8924c83c13138d568db5ea4e (diff)
note the source of highlighting routine
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
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) {