mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 06:51:28 +00:00
note the source of highlighting routine
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user