Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link with & in xml rss

Status
Not open for further replies.

elck

Programmer
Apr 19, 2004
176
NL
Hi there,
sorry if this question has been asked before, but I cannot find an answer.

I am writing a newsfeed for RSS and the <link></link> tag needs to contain a url like:
Code:
[URL unfurl="true"]http://www.kralingen.nl/index.php?rub=12&pag=114[/URL]

Some readers do not accept the &, how do I code this, please?
 
Unless i am not looking at the right place, the problem with your solution is that
Code:
&amp;
is a character, not a separator as intended.
When clicked, the url should remain
Code:
[URL unfurl="true"]http://www.kralingen.nl/index.php?rub=12&pag=114[/URL]

Not become
Code:
[URL unfurl="true"]http://www.kralingen.nl/index.php?rub=12&amp;pag=114[/URL]

Which, in PHP is quite something different.
Forgive me if i did not understand correctly
 
[tt]<link><![CDATA[[COLOR=yellow white] [/color]?rub=12&pag=114]]></link>[/tt]
note: I've put a space in front of the query part of the url to avoid default formatting of & to &amp; which would add to the confusion. (It shouldn't be there, of course, in the xml file.)
 
Thanks, that works just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top