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
pattern = new RegExp('(>[^<.]*)(' + what + ')([^<.]*)','gi')
add the 'i' flag to make it case insensitive