Skip to content Skip to sidebar Skip to footer

Disable Highlighting In Google Api Websearch Result Title

I've been using Google Web Search API but the searched keyword is coming highlighted - with b tag- in the title property of the return object. I thought webSearchControl.setNoHtmlG

Solution 1:

I've just found the solution:

It should be something like this :

$("#googleSearch").html($("#googleSearch").html() + '<br/><a href=' + results[0].url + ' target="blank">' + results[0].titleNoFormatting + '</a>');
}

So basically .titleNoFormatting solves the problem here.

Post a Comment for "Disable Highlighting In Google Api Websearch Result Title"