php-general | 2000071
Date: 07/15/00
- Next message: Samuel Beam: "Re: [PHP] Newbee question?"
- Previous message: Flint Doungchak: "RE: [PHP] set cookie"
- In reply to: r a n d y: "[PHP] getting rid of HTML in output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
> < and >...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>
- Next message: Samuel Beam: "Re: [PHP] Newbee question?"
- Previous message: Flint Doungchak: "RE: [PHP] set cookie"
- In reply to: r a n d y: "[PHP] getting rid of HTML in output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

