Re: str_replace

From: Date: Mon, 05 Nov 2001 14:57:11 +0000
Subject: Re: str_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73490@lists.php.net to get a copy of this message
$body = stripslashes( $body ); py ----- Original Message ----- From: "Jaime Iniesta Aleman" <jaimeiniesta@es.ibm.com> To: <php-general@lists.php.net> Sent: Monday, November 05, 2001 9:43 AM Subject: [PHP] str_replace Hi, I've got a form that lets users introduce comments on a page. The problem is that when they type the ' character, it is converted to \' . How can I avoid this? I'm trying to replace it but it doesn't work. For instance: $body=str_replace("'","´",$body); $comment = "<b>$subject</b><br>$body<br><i>(sent by $name on $date GMT)</i><br><br>"; Can someone help? Jaime Iniesta Alemán - IT Specialist IBM Global Services Tel. 34-91-3977450 - e-mail: jaimeiniesta@es.ibm.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#73490) next »