Re: [PHP] strip_tags and nl2br
- From: james@xxxxxxxxxxxxx (James Colannino)
- Date: Wed, 21 May 2008 00:04:58 -0700
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:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: [PHP] strip_tags and nl2br
- From: Chris
- Re: [PHP] strip_tags and nl2br
- References:
- strip_tags and nl2br
- From: James Colannino
- Re: [PHP] strip_tags and nl2br
- From: Chris
- strip_tags and nl2br
- Prev by Date: Re: RES: [PHP] Help Call Javascript Methods Inside PHP
- Next by Date: Re: [PHP] strip_tags and nl2br
- Previous by thread: Re: [PHP] strip_tags and nl2br
- Next by thread: Re: [PHP] strip_tags and nl2br
- Index(es):
Relevant Pages
|