Hyperlink in RSS feed

Status
Not open for further replies.

micfire

Spämmed
Oct 26, 2006
967
9
0
How I can make a normal hyperlink (a href...) in XML? I'm trying to do something with my blog's RSS and I need to get links to previous posts in the <description> tag content in XML file. I have everything else covered but for some reason I just can't get links to work.
 


The html code in the <description> tag has to be encoded. < becomes < and > becomes >.

For example:
<item>
<title>$yourtitle</title>
<link>$yourlink</link>
<description><a href=yourlinkurl>yourlinktext</a></description>
</item>

That worked for me. I hope it does for you ;)
 
I do it like this:

Code:
<item>
<title>xxx</title>
<description><![CDATA[<a href="http://www.example.com/">xxx</a>]]></description>
<pubDate>xxx</pubDate>
<link>http://www.example.com/</link>
</item>
 
Status
Not open for further replies.