Item->Link White Space Fix

March 03, 2005

Larry Bouwens helped uncover bug in our Feed2JS script. Feeds from the National Weather service such as http://weather.gov/data/current_obs/KCOS.rss are structured so the link tags are formatted:
      <link>
      http://www.nws.noaa.gov/
      </link>
and until now the script was not parsing out the extra white space (linefeeds and spaces) so when tossed into a JavaScript statement, the script broke. Bottom line, the addition of a few trim() statements cleaned it up.

Write a comment










Remember personal info?





Spam Prevention Security Code: Enter the numbers you see in the image above