Hello there
I recently saw someone post a problem similar to yours. I tweaked the function a little, but it's untested.
<?php
$text = "blah blah blah" // Your Text String
$start = "<script>";
$end = "</script>";
$startPos = strpos($text, $start);
$endPos = strpos($read, $end) + strlen($end);
$len = $endPos - $startPos;
$badText = substr($text, $startPos, $len);
ereg_replace($badText, " ", $text);
echo $text;
?>
Hope it helps
Jaime Shaker