hi phpeeps!
I've just done a script that deletes anything in a string between two points in this case <script> and </script>.
it goes:
<?
$start = strpos($string, '<script>');
$end = strpos($string, '</script>');
$length = $end - $start;
$dele = substr($string, $start, $length);
$final = str_replace($dele, " ", $string);
echo $final;
?>
I was thinking there got to be a better way to do this and also how can i make it go through several time until all the script tags are removed?
thanks