RE: [PHP] getting rid of HTML in output

From: Date: Sat, 15 Jul 2000 21:52:20 +0000
Subject: RE: [PHP] getting rid of HTML in output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6780@lists.php.net to get a copy of this message
> I have a mail form script that I am working on and if you > enter HTML into the any of the form fields, it spits it out > on the output page as HTML. How can I get rid of the > "<HTML>" part of messages so that it won't mess up the > output? I think all I need to do is to conver the "<>" to > &lt; and &gt;...any easy way to do this? htmlspecialchars() htmlentities() Or alternatively strip_tags() All in the strings section of the manual. -- Richard Heyes http://www.heyes-computing.net/scripts/ Plain text email only please!

« previous php.general (#6780) next »