It's nice and quick if you string everything thats between < and >, and then just do a few other quick checks to strip things between <script and </script>
I have a function ( actually mentioned over here: http://www.phpbuilder.com/board/showthread.php?s=&threadid=10234010 ) which does that, might be helpful if you're interested shoot me and email - postmaster@durdenwebapplications.com
And to get rid of multiple spaces next to each other, try something like this ( maybe not hte most efficient way, but it works damn good ):
// note this is while (strstr ($string, "[two spaces go here]")) {
while (strstr ($string, " ")) {
// and this is str_repalce ("[two spaces]", "[only one space]"
$string = str_replace (" ", " ", $string);
}