elseif($curtag == 'URL') $y_link = htmlentities($data, ENT_QUOTES, 'UTF-8' ); Code (markup): For some reason when the xml data it pulls has a symbol such as "&" it seems to mess up the final data, can anyone please help me so it doesn't do that anymore. Basically whenever the data is http://www.domain.com/computer&something.htm it pulls everything after the "&" so it ends up being something.htm How can i make it retrieve the entire url? Thanks a lot
Instead of htmlentities, use urlencode ( tough, I don't see a reason why you should touch these functions ) : $link = urlencode($data); PHP: