Re: strip_tags and nl2br

From: Date: Wed, 21 May 2008 11:45:48 +0000
Subject: Re: strip_tags and nl2br
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-274594@lists.php.net to get a copy of this message
Chris wrote:
Are you sure there are newlines before you run strip_tags?
I would assume so, because everything from the textarea runs together in one line when displayed in the browser until filtered through nl2br(). That would suggest to me that there are indeed \n's that are being converted to <br>'s.
It doesn't touch newlines because they aren't html entities.
That is exactly why I am distressed. James -- My blog: http://www.crazydrclaw.com/ My homepage: http://james.colannino.org/ "When you do the common things in life in an uncommon way, you will command the attention of the world." --George Washington Carver

« previous php.general (#274594) next »