I\'m using a jquery function I found to find words in a div and highlight them. I\'m using this along with a search tool so the case is not always going to match the words
Just add the 'i' flag.
pattern = new RegExp('(>[^<.]*)(' + what + ')([^<.]*)','gi')