Re: [PHP] preg_replace to delete all js code in string help needed

2004-05-09 Thread Curt Zirzow
* Thus wrote Dave Carrera ([EMAIL PROTECTED]): > $text2 = preg_replace("/]+>.*?<\/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:

[PHP] preg_replace to delete all js code in string help needed

2004-05-09 Thread Dave Carrera
$text2 = preg_replace("/]+>.*?<\/script>/is","",$text2); Leaves output with "language="javascript" blah blah Dose anyone know of a pattern that will get rid of ALL javascript from a string. Thank you for any help Dave Carrera --- Outgoing mail is certified Virus Free. Checked by AVG anti-viru