jQuery highlight plugin breaks a word with special characters (üöä)
问题 I have a jQuery plugin that on input of word highlights the corresponding value in text. Words can be separated with space too. My problem is when there is a word with special characters (ü,ö or ä). When I enter for example 'dölor' or 'faücibus', the highlight breaks so that it looks like 'd lor' or 'fa cibus'. jsfiddle: http://jsfiddle.net/qbwe4/1/ HTML <body> <input type="text" class="span1 disabled" id="field1" name="field1"><br> <input type="text" class="span1 disabled" id="field2" name=