Added code to escape RegEx characters in highlightText