What will be the best way to highligh the Searched pharase within a HTML Document.
I have Complete HTML Document as a Large String in a Variable. And I want to Highlight the searched term excluding text with Tags.
For example if the user searches for "img" the img tag should be ignored but phrase "img" within the text should be highlighted.