Re: function to remove all \" from a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
To: "[php] PHP General List" <php-general@xxxxxxxxxxxxx>
Sent: Wednesday, February 16, 2005 11:22 AM
Subject: 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



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux