On 09-Dec-2004 Marek Kilimajer wrote:
<snipage>
> 
> not really, but it removes <script> and </script> so javascript is
> not 
> interpreted.

$txt = preg_replace('|<script[^>]*?>.*?</script>|si', '', $txt);

Regards,
-- 
Don Read                                     [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to