Re: "nullifying" php and html tags?
| From: | Richard Crawford | Date: | Tue, 19 Feb 2002 05:54:06 +0000 |
| Subject: | Re: "nullifying" php and html tags? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85341@lists.php.net to get a copy of this message | ||
Would strip_tags() do?
On Mon, 2002-02-18 at 21:47, Police Trainee wrote:
> Hello. I just finished creating a simple input form in
> which the contents of a textarea get written to a file
> which in turn gets read by a particular page. is there
> anyway to "disable" any html or php tags that the user
> might have typed in? it seems pretty dangerous to
> allow a user to enter any amount of php programming at
> their will.
> something as simple as a function that strips all <'s
> and >'s would work just as well i would imagine.
>
> thanks!
>
> -mark
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Sliante,
Richard S. Crawford
mailto:rscrawford@mossroot.com http://www.mossroot.com
AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford
MSN: underpope@hotmail.com
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupery
"Push the button, Max!"