$text = preg_replace("#<style type='text/css'>.*</style>#si", "<style type='text/css'></style>", $text);