Return to Jive Software

Skip navigation
702 Views 3 Replies Last post: Nov 12, 2009 4:50 PM by sean.moran RSS
Line6Angela Novice 20 posts since
Mar 17, 2009
Currently Being Moderated

Nov 4, 2009 1:32 PM

RSS Feed Google API doesn't look right

I am working on adding a feed to one of our pages on our site to pull the blog that we have on the clearspace community. The feed description is showing some strange code: <!-- [DocumentBodyStart:0eb49085-9ab5-469f-ac6b-d5db61718f33] --><!----> I have also attached a screenshot.

 

The blog lives here: http://line6.com/community/community/line_6_blog

 

and the code I put in the pages is:

 

<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA3T1M0SptbL2dhAx1D39GABRIY-PeZWTrQDJbyAwc-nOZbPfUdRRy8KXNzNXzt6SpzwphYrakELBc8Q"></script>
    <script type="text/javascript">
      google.load("feeds", "1");
</script>
  <script type="text/javascript">

 

      google.load("feeds", "1");

 

      function initialize() {
        var feedControl = new google.feeds.FeedControl();
        feedControl.addFeed("http://line6.com/community/community/feeds/blogs?community=2198");
        feedControl.draw(document.getElementById("feedControl"));
      }
      google.setOnLoadCallback(initialize);

 

    </script>

 

Could you let me know if I am doing something wrong that is making that strange code appear?

 

Thanks!

Angela

Attachments:
corygagliardi Jive Employee 4,983 posts since
Apr 23, 2009
Currently Being Moderated
Nov 4, 2009 5:01 PM in response to: Line6Angela
Re: RSS Feed Google API doesn't look right

Hi Angela,

 

This comment tag is something that Clearspace puts into the RSS feed.  This is normally not seen, because RSS feed readers should be decoding any html characters before rendering it.  You should be able to fix this by decoding the HTML characters before embedding it into the page.  Making this change will also make it so that other HTML markup (such as Images, header, and bold tags) wil be rendered correctly.

 

You may be able to accomplish this using the unescapeHTML function that is part of the Prototype library:

function stripTags() {
  return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi, '');
}
function unescapeHTML() {
  return this.stripTags().replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');
}

Taken from http://prototypejs.org/assets/2009/8/31/prototype.js

 

Let me know if you have any more questions about this.

 

Thanks,

Cory

sean.moran Jive Employee 7,757 posts since
Dec 10, 2007
Currently Being Moderated
Nov 12, 2009 4:50 PM in response to: Line6Angela
Re: RSS Feed Google API doesn't look right

Hi Angela,

 

There is actually a known bug ( ID CS-12129 ) that causes these document comments to be rendered in the RSS feed. This issue has been fixed in version 2.5.13.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Case Product Issues

Loading Jira issues

Loading related product issues for this case
To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.