This is a discussion on How to encode URL for rss feed? within the PHP General forums, part of the PHP Programming Forums category; What is the best way to encode a URL to be echo'ed into a dynamically generated .rss file? Currently, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
What is the best way to encode a URL to be echo'ed into a dynamically
generated .rss file? Currently, I htmlspecialchars() it then put it into a node with CDATA: <link><![CDATA[' . $href . ']]></link> This seems like a bit of hack to have to use CDATA or I the feed doesn't validate. Thoughts? |