Re: Editing in a text area field

From: Date: Fri, 09 Jan 2009 19:43:53 +0000
Subject: Re: Editing in a text area field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-285897@lists.php.net to get a copy of this message
Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add <br /> tags in place of newlines. Store the newlines. 100% I agree. Thats called the act of defensive programming. We have no right over altering user input but yes we have right to display what we want user see on the site. Thanks, V

« previous php.general (#285897) next »