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