Improving validation for snews rss feeds (2)

March 22, 2010 at 16:31 Leave a comment

So now, my snews cms site uses UTF-8 charset, cause the site is in German. Now and again I used quote tags in the headlines. The get converted to " in the database, which is fine. However the html entity for quotes turns up in the snews rss feed an will break validation (snews 1.7, March 2010). The fix for this is quite simple … here we go:

in the rss_contents function (near to end) find:
<title><![CDATA['.strip($title).']]></title>

and replace it with:
<title><![CDATA['.strip(str_replace('&quot;','\"',$title)).']]></title>

Advertisements

Entry filed under: snews CMS. Tags: , , , , .

Improving validation for snews rss feeds (1) Improving validation for snews rss feeds (3)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


March 2010
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 2 other followers


%d bloggers like this: