Page MenuHomePhabricator

Figure out how to use highlighting in getTextSnippet
Open, MediumPublic

Description

The core SearchResult class supports highlighting for snippets.
However with the following code no highlighting is visible

$this->getOutput()->addHTML($textResult->getTextSnippet( array( $searchterm ) );

The correct snippet is displaeyed but without any highlighting.

Event Timeline

Physikerwelt raised the priority of this task from to Medium.
Physikerwelt updated the task description. (Show Details)
Physikerwelt added a subscriber: Physikerwelt.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 26 2015, 11:29 PM
Restricted Application added a project: Discovery. · View Herald TranscriptJul 21 2015, 7:04 PM