- Search result snippet creation
- Creates a snippet using some regexp magic created from the given search string
This event wraps the creation of a search result snippet extracted from the raw page source matching the keywords the user searched for.
The data is passed the following array:
[ 'id' => $id, 'text' => &$text, 'highlight' => &$highlight, 'snippet' => '', ];
highlight can be modified from within the BEFORE event.
snippet will be filled with the final HTML snippet in the AFTER event or can be set on your own in the BEFORE event.