summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {