Thread: saving XML code
View Single Post

   
  #1 (permalink)  
Old 02-28-2008, 07:12 AM
Simon
 
Posts: n/a
Default saving XML code

Hi,

I want to save XML code into my database using php.

is using:

$xml = htmlentities($str, ENT_QUOTES);

and saving the converted code a fairly safe way of saving the xml? I don't
think I could have any problem with injection that way but I could be wrong.

Any idea?

Simon


Reply With Quote