Re: Close all open tags in HTML text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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                                     dread@xxxxxxxxxxx
-- 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux