Recently, I came across an interesting example of using Angular filter to highlight search results. It works well in highlighting the word 'suit', but I noticed that all non-matching text remains visible.
If you'd like to see the example I found, check out this link.
Is there a way to hide all text except for the highlighted word and maybe two or three words before and after it?