Jump to content

RSS link


gerkintrigg

Recommended Posts

I have a lovely RSS creation script which dynamically writes an RSS feed using the information from the database, which you can automatically update every time a blog entry (or anything else generated by a script) is added.

 

The only issue with it, is that the

<strong>

tags have had to be deleted using strip_tags() because the RSS doesn't like it.

 

I want to keep the original formatting of the blog article but because I have to strip out the strong links, the hyperlinks are also removed.

 

I don't know enough about RSS (IMHO) to work out how to put the links back in - do I need to format the STRONG tags differently, or do i need to change the PHP to str_replace() the strong tags with nothing?

 

Here's some code that does work:

<item rdf:about="http://www.manteya.com/blog/Music-Improves-Productivity_24.html">
<title>Music Improves Productivity</title>
<link>http://www.manteya.com/blog/Music-Improves-Productivity_24.html</link>
<description>Research shows that music can improve speed of working within organisations. There is a 
double-edged sword to this article, however. Music with fast tempos can help the release of adrenalin and 
therefore  increase the heart rate of the listener. Music producers here in the UK have taken advantage 

 

And here's some that doesn't:

<item rdf:about="http://www.manteya.com/blog/Music-Improves-Productivity_24.html">
<title>Music Improves Productivity</title>
<link>http://www.manteya.com/blog/Music-Improves-Productivity_24.html</link>
<description>Research shows that music can improve <strong>speed</strong> of working within organisations. 
There is a double-edged sword to this article, however. Music with fast tempos can help the release of adrenalin
and therefore  increase the heart rate of the listener. Music producers here in the UK have taken advantage 

I'm sure you geniuses (or geniei) can work it out, so any help would be very welcome indeed.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.