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" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]