Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

RE: [PHP] getting rid of HTML in output From: Richard Heyes (php <email protected>)
Date: 07/15/00

> 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!

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>