" and ' giving problems

From: Date: Tue, 11 Feb 2003 05:52:49 +0000
Subject: " and ' giving problems
Groups: php.general 
Request: Send a blank email to php-general+get-135160@lists.php.net to get a copy of this message
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

« previous php.general (#135160) next »