Re: strip_tags()

From: Date: Tue, 03 Apr 2001 00:04:46 +0000
Subject: Re: strip_tags()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46727@lists.php.net to get a copy of this message
I think you want strip_tags($fp, "<!>"); -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: "David Balatero" <db@icegaming.com> Newsgroups: php.general Sent: Thursday, March 29, 2001 9:45 PM Subject: [PHP] strip_tags() > I have a document with <!--ktalk newpost--> in it, which I want to KEEP in > the document. (it's being read into $fp). How can I use strip_tags() to > remove all tags, but keep <!--ktalk newpost--> in the document? I tried > > $filedata = strip_tags($filedata, "<!--ktalk newpost-->"); > > Then re-writing it to the file, but it still takes out the <!--ktalk > newpost--> tag! Please help! > > Thanks, > David Balatero > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#46727) next »