preg_replace to delete all js code in string help needed

From: Date: Sun, 09 May 2004 11:41:59 +0000
Subject: preg_replace to delete all js code in string help needed
Groups: php.general 
Request: Send a blank email to php-general+get-185737@lists.php.net to get a copy of this message
$text2 = preg_replace("/<script[^>]+>.*?<\/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-virus system (http://www.grisoft.com). Version: 6.0.679 / Virus Database: 441 - Release Date: 07/05/2004

« previous php.general (#185737) next »