PHP reading a link via xml with special characters

Sn1P I daXa

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