Re: Check for unsafe HTML
| From: | Jochem Maas | Date: | Wed, 30 Aug 2006 14:45:56 +0000 |
| Subject: | Re: Check for unsafe HTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241236@lists.php.net to get a copy of this message | ||
tedd wrote:
> At 4:12 PM +0200 8/30/06, Bogdan Ribic wrote:
>> Hi all,
>>
>> I need to check html that is entered by user for unsafe content (ie
>> javascript, vbscript, onmouseover etc) and still keep "safe" tags. Is
>> there any easy way for that?
>>
>> Boban.
>
>
> Try strip_tags().
<yodism>do, not try.</yodism>
>
> http://us3.php.net/strip_tags
>
> tedd