![]() |
Handling XML through input->post - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Handling XML through input->post (/showthread.php?tid=29133) |
Handling XML through input->post - El Forum - 03-30-2010 [eluser]msteudel[/eluser] So I'm receiving some xml via http POST like so: $xml = $this->input->post('request'); Obviously CI protects against XSS, but in this case I actually want the various entities intact, e.g. converting < to < So is there a proper way to indicate this? I tried doing $xml = $this->input->post( 'request', false ); But that didn't work. I can of course do something like: $xml = html_entities_decode( $this->input->post( 'request' ) ); TIA, Mark |