Hiighlighting Script -- function doHighlight(bodyText, searchTerm, highlightStartTag, highlightEndTag)

I need to adapt this script to enclose hiliting tags only around real words so as to omit such symbols as "+", "-", and "!" which are part of the query language supported by the perl search script I use on my site. So if someone enters "+bag! +lady", only "bag" and "lady" should be highlighted.

Here is how this query appears when in the URL field:


Using highlightGoogleSearchTerms(referrer) procedure somehow did not work...

December 21,

This topic is archived.

See also:

Back to support forum