Loading ...
Sorry, an error occurred while loading the content.

Trimming Title Response in Google API (Soap::Lite)

Expand Messages
  • mattgermonprez
    Hi, Could someone tell me the best way (or any way) to strip off the characters in the Google API response for {title} in SOAP::Lite. This is what I get for a
    Message 1 of 1 , Apr 22, 2003
    • 0 Attachment
      Hi,

      Could someone tell me the best way (or any way) to strip off the
      characters in the Google API response for {title} in SOAP::Lite.

      This is what I get for a return:

      Please enter your query
      Chicago
      <b>Chicago</b> Tribune | Home page
      http://www.chicago.tribune.com/
      City of <b>Chicago</b>
      http://www.ci.chi.il.us/
      The University of <b>Chicago</b>
      http://www.uchicago.edu/

      based on this code snipet:

      foreach my $output (@{$result->{resultElements}}) {
      print "$output->{title}\n $output->{URL}\n";
      }

      Thanks,
      Matt
    Your message has been successfully submitted and would be delivered to recipients shortly.