src/includes/classes/Core/SearchTermHighlighter.php
public function highlight(string $string): string
    {
        if (!$this->q || !$this->terms || !$this->regex) {
            return $string; // Nothing to do.
        }
        return $string = preg_replace_callback($this->regex, function ($m) {
            return '<i class="'.$this->class.'">'.$this->c::escHtml($m['term']).'</i>';
        }, $string);
    }
public function highlight(string $string): string
    {
        if (!$this->q || !$this->terms || !$this->regex) {
            return $string; // Nothing to do.
        }
        return $string = preg_replace_callback($this->regex, function ($m) {
            return '<i class="'.$this->class.'">'.$this->c::escHtml($m['term']).'</i>';
        }, $string);
    }
Highlight.

@since 161007 Highligher.

@param string $string String to highlight.

@return string Highlighted string.