* Thus wrote Dave Carrera ([EMAIL PROTECTED]):
> $text2 = preg_replace("/<script[^>]+>.*?<\/script>/is","",$text2);
> 
> Leaves output with "language="javascript" blah blah

I tested that and it strips the script tags with "language" too. I
do know that it will not strip script tags that have no attributes:
   <script> var yada;... </script>

This will fix that though:
   /<script[^>]*?>.*?<\/script>/is

   or
   !<script[^>]*>.*</script>!/isU


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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

Reply via email to