I have an xml file that is editable via a webpage where users enter links. This looks like
<links>
<link1 path="http://abc.def.com/abcd?id=2&ed=4" > </link1>
<links>
I read this xml via php and then add a button which will link here. What I'm currently doing is use a str_replace('&', '&',) on the xml string and then a str_replace('&', '&',) on the extracted path. Is there a more elegant way to do this?