craigy72 Posted May 13, 2008 Share Posted May 13, 2008 Hello Guys. Im trying to create an ATOM feed from my mssql database. Within the URL's of the data there are certain characters that XML doesn't like, therefore I'm trying to escape them using CDATA. CODE: <?php echo "<link href =<![CDATA[\""/$result['url']."\"]]>/>";? OUTPUT: <link href=<![CDATA["http://www.credit-suisse.com/news/en/media_release.jsp?ns=40767"]]>/> For some unknown reason to me the XML is not escaping this code, I've manged to get it to work on the <summary> </summary> tags but not the <link> </link> tabs. Can anyone help me? Thanks Link to comment https://forums.phpfreaks.com/topic/105391-atom-feed-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.