2014-06-20, 06:56:45
I'm having some trouble creating an rss feed from the blog the description outputs heading tags w/ text instead of just the text, is there some way to fix it? This is what it is outputting:
I changed the DateTime string for the <lastBuildDate> to validate the feed with the W3C Feed Validation Service.
File: gs-blog/class/primary/blog.php >line 818
Current:
Changed to:
Code:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Bend Marketing Blog</title>
<link>http://bend.marketing/rss.rss</link>
<description>This blog is for people interested in marketing tips and tricks to make their business or organization successful.</description>
<lastBuildDate>Thu, 19 Jun 2014 20:35:56 +0000</lastBuildDate>
<language>en-US</language>
<atom:link href="http://bend.marketing/rss.rss" rel="self" type="application/rss+xml" />
<item>
<title>Social media and the local political campaign #1</title>
<link>http://bend.marketing/blog/post/social-media-and-the-local-political-campaign-part-1</link>
<guid>http://bend.marketing/blog/post/social-media-and-the-local-political-campaign-part-1</guid>
<description>&lt;p&gt;In the past 10 years, social media has gone from a curiosity to a dominant force in guiding public conversation. This change has been especially pronounced for local politicians. Wher</description>
</item>
<item>
<title>Welcome to The Bend Marketing Blog</title>
<link>http://bend.marketing/blog/post/welcome-to-the-bend-marketing-blog</link>
<guid>http://bend.marketing/blog/post/welcome-to-the-bend-marketing-blog</guid>
<description>&lt;p&gt;Do you have an Online question you need answered? Is there some technology your interested in learning more about?&lt;/p&gt;
&lt;p&gt;This is the place to get informat</description>
</item>
</channel>
</rss>
I changed the DateTime string for the <lastBuildDate> to validate the feed with the W3C Feed Validation Service.
File: gs-blog/class/primary/blog.php >line 818
Current:
Code:
<lastBuildDate>".date("D, j M Y H:i:s T")."</lastBuildDate>\n
Changed to:
Code:
<lastBuildDate>".date("D, d M Y H:i:s O")."</lastBuildDate>\n