you could use stripslashes or stripcslashes to remove the '\'-s, otherwise i wouldn't know..
"Pag" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > When a user wants to add a comment on my site and uses either " or ', and > when it gets printed out, comes out as /" or /', either to the web page or > on a form to alter. > > The only "treatment" i give it after its submitted on the form is: > > $comentarioc = str_replace("\r\n", "\n", $comentarioc); > $comentarioc = str_replace("\r", "\n", $comentarioc); > > Is there a way to solve this? So it can accept both " and ', and be able > to alter/print it with no problem? > Thanks. > > Pag > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php