FormattedString for Algolia search results


#1

I’m looking for the cleanest way to highlight the text on a page that corresponds to a search term. For example, on my recipe app, if I search for the word ‘egg’, that word would be highlighted. Simple, right?

Well, this is an Angular app with all the data coming in one chunk from Firebase. Anyone using FormattedString to highlight snippets of a chunk of text?