Added a function to help highlight matches in search results.