concrete/blocks/search/controller.php
public function highlightedMarkup($fulltext, $highlight)
    {
        if (!$highlight) {
            return $fulltext;
        }

        $this->hText = $fulltext;
        $this->hHighlight = $highlight;
        $this->hText = @preg_replace('#' . preg_quote($this->hHighlight, '#') . '#ui', '<span style="background-color:' . $this->hColor . ';">$0</span>', $this->hText);

        return $this->hText;
    }
public function highlightedMarkup($fulltext, $highlight)
    {
        if (!$highlight) {
            return $fulltext;
        }

        $this->hText = $fulltext;
        $this->hHighlight = $highlight;
        $this->hText = @preg_replace('#' . preg_quote($this->hHighlight, '#') . '#ui', '<span style="background-color:' . $this->hColor . ';">$0</span>', $this->hText);

        return $this->hText;
    }
public function highlightedMarkup ( $ fulltext , $ highlight ) { if ( ! $ highlight ) { return $ fulltext ; } $ this -> hText = $ fulltext ; $ this -> hHighlight = $ highlight ; $ this -> hText = @ preg_replace ( '#' . preg_quote ( $ this -> hHighlight , '#' ) . '#ui' , '<span style="background-color:' . $ this -> hColor . ';">$0</span>' , $ this -> hText ) ; return $ this -> hText ; }
Highlight parts of a text.

@param string $fulltext the whole text
@param string $highlight The text to be highlighted

@return string
Highlight parts of a text .