Problems with highlighting text


Posted By: Thomas Shaw, 2:51pm Sunday 11 April 2010

Highlighting keyword search terms in a search result list or job advert may look and feel nice. It can also be useful for quickly finding relevant words within large pages of text. But, it can have the reverse effect if you don’t script it correctly!

Same job advert, 3 different keyword searches. Notice how the search function searches within the HTML code and breaks the formatting tags.


keyword=S





keyword=P





keyword=DIV