Re: how to disable html postings?
| From: | Leif K-Brooks | Date: | Fri, 15 Aug 2003 18:05:33 +0000 |
| Subject: | Re: how to disable html postings? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159741@lists.php.net to get a copy of this message | ||
Merlin wrote:
I am wondering how to prevent that users can post html through a form. I process the form with php and save the date to a db. There are a couple of sites I have already seen such thing. No matter what you do, it is not possible to submit html commands. Thats exacly what I want to do for my site. Can anybody point me into the right direction on how to "disable" that? If you want to display the tags (actually show <tag>), use htmlentities(). If you want to remove the tags, use striptags().-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.