Re: strip_tags and nl2br

From: Date: Wed, 21 May 2008 07:04:58 +0000
Subject: Re: strip_tags and nl2br
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-274591@lists.php.net to get a copy of this message
Chris wrote:
RTM. Supply the tags you want to keep when you call strip_tags. $stripped = strip_tags($data, '<br/><br>');
I can do that, but my question had to do with strip_tags seeming to get rid of \n's, not <br> tags. This is why I was concerned. If I run strip_tags(), followed by nl2br, the <br> tags that nl2br generates should be there. James -- My blog: http://www.crazydrclaw.com/ My homepage: http://james.colannino.org/ "Black holes are where God divided by zero." --Steven Wright

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#274591) next »