note 54378 deleted from function.stripslashes by betz

From: Date: Sat, 02 Jul 2005 09:22:29 +0000
Subject: note 54378 deleted from function.stripslashes by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91295@lists.php.net to get a copy of this message
Note Submitter: josh at snaphat dot com Reason: useless ---- 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.

« previous php.notes (#91295) next »