Re: function to remove all \" from a variable

From: Date: Wed, 16 Feb 2005 02:24:04 +0000
Subject: Re: function to remove all \" from a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208801@lists.php.net to get a copy of this message
The manual to the rescue http://jp2.php.net/stripslashes -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com ----- Original Message ----- From: "Tim Burgan" <email@timburgan.com> To: "[php] PHP General List" <php-general@lists.php.net> Sent: Wednesday, February 16, 2005 11:22 AM Subject: [PHP] function to remove all \" from a variable > Hello, > > I'm using FCKeditor to edit content on my site. > > But the content it produces escapes all the " (double quote) characters > from my HTML, and replaces it with \" (backslash-double quote). > > Is the a function that I can use to change it back? > > Does str_replace() do it.. if so is this how I use it: > str_replace('\"', '"', $_POST['FCKeditor1']); > > Tim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#208801) next »