note 54378 added to function.stripslashes
| From: | josh at snaphat dot com | Date: | Fri, 01 Jul 2005 23:34:50 +0000 |
| Subject: | note 54378 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91285@lists.php.net to get a copy of this message | ||
Stripslashes is a useful function to remove unwanted backslashes from text area data that is
submitted. Any text area data with certain characters such as ' & et cetera will cause a
backslash to appear before it when displayed in a text area. To get rid of this simply call
stripslashes on the string in question before displaying that string. It even fixes data with
mutiple backslashes such as "////" -> becoming "////////". The original
"////" will be retained by removing one slash per slash.
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54378
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54378&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54378&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54378&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54378&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54378&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54378&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54378&report=yes
Search -- http://master.php.net/manage/user-notes.php