$text = preg_replace ("/<script([\s]*[\w]*)>/i", "", $text); $text = preg_replace ("/<\/script>/i", "", $text);