I am looking to do something similar to this plugin http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
But the problem I am facing is that the above plugin does not allow you to highlight words within html.
So if you are looking for my text
inside html like
this is <a href="#">my</a> text that needs highlighting
You will not get any highlighting.
Is there a way to highlight text while ignoring any html tags in between?
I fiddled some RegEx which allows HTML tags at the position of whitespace chars:
JavaScript:
Try it here: http://jsfiddle.net/UPs3V/