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').
>


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

Reply via email to