strip_tags()

From: Date: Fri, 30 Mar 2001 02:50:36 +0000
Subject: strip_tags()
Groups: php.general 
Request: Send a blank email to php-general+get-46221@lists.php.net to get a copy of this message
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

« previous php.general (#46221) next »