diff --git a/jquery.highlight.js b/jquery.highlight.js index 9dcf3c7..398075a 100644 --- a/jquery.highlight.js +++ b/jquery.highlight.js @@ -46,7 +46,7 @@ jQuery.extend({ highlight: function (node, re, nodeName, className) { if (node.nodeType === 3) { - var match = node.data.match(re); + var match = node.data.replace(/\u00a0/g, " ").match(re); if (match) { var highlight = document.createElement(nodeName || 'span'); highlight.className = className || 'highlight';