Articles tagged with "excerpt"

Showing a text excerpt around multiple keywords

By JP Mortiboys
On a typical search results page, you want to display an excerpt of each matching item, showing the keywords. TextHelper::excerpt() works, but only for a single word/phrase. This helper finds the chunk of text containing as many keywords as possible.
[Read more]