I am working with an XML feed that, as one of its nodes, has a URL string similar to the following:
http://aflite.co.uk/track/?aid=13414&mid=32532&dl=http://www.google.com/&aref=chris
I understand that ampersands cause a lot of problems in XML and must be escaped with & instead of naked & . So I changed php as follows:
<node><?php echo ('http://aflite.co.uk/track/?aid=13414&mid=32532&dl=http://www.google.com/&aref=chris'); ?></node>
However, when it generates an XML feed, the line appears with full & and therefore the actual url is not working. Sorry if this is a very basic misunderstanding, but some recommendations will be excellent.
I also tried using %26 instead of & but still getting the same problem.
Chris source share