[PHP] function to remove all \ from a variable

2005-02-15 Thread Tim Burgan
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


Re: [PHP] function to remove all \ from a variable

2005-02-15 Thread Lars B. Jensen
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 PROTECTED]
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

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


Re: [PHP] function to remove all \ from a variable

2005-02-15 Thread Tim Burgan
Sorry for clogging up you mail box.
Yes.. str_replace('\', '', $_POST['FCKeditor1']) works.
I must've needed to think through my thoughts by typing it out.
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php