1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:35:56 +00:00

note the source of highlighting routine

This commit is contained in:
Andrew Dolgov
2013-07-31 14:54:22 +04:00
parent dd90eb2c7a
commit d41ad03712

View File

@@ -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) {