note the source of highlighting routine

master
Andrew Dolgov 11 years ago
parent dd90eb2c7a
commit d41ad03712

@ -2865,6 +2865,8 @@
if ($highlight_words) { if ($highlight_words) {
foreach ($highlight_words as $word) { foreach ($highlight_words as $word) {
// http://stackoverflow.com/questions/4081372/highlight-keywords-in-a-paragraph
$elements = $xpath->query('//*[contains(.,"'.$word.'")]'); $elements = $xpath->query('//*[contains(.,"'.$word.'")]');
foreach ($elements as $element) { foreach ($elements as $element) {

Loading…
Cancel
Save