I\'m generating a ton of XML that is to be passed to an API as a post variable when a user click on a form button. I also want to be able to show the user the XML before han
You could try this:
XML Document XMLDoc; $fruits = array('apple', 'banana', 'orange'); foreach($fruits as $fruit) { $string .= "\n ".$fruit.""; } $string .= "\n "; ?> =str_replace("<", "<", str_replace(">", ">", $string))?> =$string?>
=str_replace("<", "<", str_replace(">", ">", $string))?>