Re: Htmlentities and Newlines?

From: Date: Sat, 28 Sep 2002 18:49:03 +0000
Subject: Re: Htmlentities and Newlines?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117967@lists.php.net to get a copy of this message
nl2br() covertes newlines to <br> tags (something a browser will render). Andre Dubuc wrote:
Perhaps I don't understand the use of 'htmlentities' too well, but I would like newlines to be retained/inserted into a db, and then if displayed, to produce a new line from a textarea. However, I want the possibility of dangerous html excluded (hence the use of 'htmlentities').


« previous php.general (#117967) next »