Dan G. Switzer, II schrieb:
Jörn,

The highlight code you're using code break HTML.

Could you detail that?

function formatItem(d){
        return "<strong>" + d[1] + "</strong>";
}

If the user would try searching for the word "str", your highlight code
would try to wrap strong tags inside my strong tags.
Ok, so I need to exclude html from the search?
Besides, someone may not actually want the highlight behavior. It's
definitely not a behavior I want every time.
Fully agreed, I'll make that optional. I've got another request for an even more sophicistacted highlighting, seems like a good idea to implement it not only as a boolean option.

--
Jörn Zaefferer

http://bassistance.de

Reply via email to