[PHP] textarea and quotes

2004-05-05 Thread Vincent DUPONT
Hi,

I can't remember the name of the function to remove the escaping of quotes when 
submitting a textarea

example : 

tr class=content_title
becomes : 
tr class=\content_title\

stripslashes and stripcslashes seem not to work...

vincent

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



Re: [PHP] textarea and quotes

2004-05-05 Thread John W. Holmes
From: Vincent DUPONT [EMAIL PROTECTED]

 I can't remember the name of the function to remove 
 the escaping of quotes when submitting a textarea
 example : 
 tr class=content_title
 becomes : 
 tr class=\content_title\
 stripslashes and stripcslashes seem not to work...

stripslashes() works, just make sure you capture the result.

example:
$newstr = stripslashes($oldstr);
and not:
stripslashes($oldstr);

---John Holmes...

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