I want to detect style tags and the CSS inside the style tag minified (removing all spaces, etc).
preg_match("/\<style\>(.*)\<\/style\>/i",$str,$title);
That detects it, but some creators use <style type="text/css">
, how can I also detect those instead of only <style>
?