function remove_style($str){ $output = preg_replace('/(<[^>]+) style=".*?"/i', '$1', $str); return $output;}