I\'m trying to highlight search terms but it doesn\'t split the words. Two words take as a one string and highlights only the string as is.
In the demo you can see that
From the plugin's documentation (available here):
You can highlight more than one text at once by running highlight with an array of terms as a first attribute. It's much faster than running the highlight function several times.
$("body p").highlight(["jQuery", "highlight", "plugin"]);
This means that you can simply use:
$('p,a').highlight(['Windows XP', 'Windows']);