44 $buffer = ob_get_contents();
57 $css = ob_get_contents();
58 if(
false === $css ) {
64 $css = preg_replace(
'!/\*[^*]*\*+([^/][^*]*\*+)*/!',
'', $css );
76 $css = str_replace( $none,
'', $css );
79 $css = str_replace( array(
'; ',
' ;',
';;' ) ,
';', $css );
80 $css = str_replace( array(
': ',
' :' ),
':', $css );
81 $css = str_replace( array(
'{ ',
' {' ),
'{', $css );
82 $css = str_replace( array(
'} ',
' }',
';}' ) ,
'}', $css );
83 $css = str_replace( array(
', ',
' , ' ) ,
',', $css );
84 $css = str_replace( array(
' 0px',
':0px' ),
'0', $css );
85 $css = str_replace(
'#000000',
'#000', $css );
86 $css = str_replace( array(
'#ffffff',
'#FFFFFF' ) ,
'#fff', $css );
99 $js = ob_get_contents();
100 if(
false === $js ) {
115 $js = str_replace( $none,
'', $js );
118 $js = str_replace( array(
'= ',
' =' ) ,
'=', $js );
121 $content = trim( $js );
139 $html = ob_get_contents();
140 if(
false === $html ) {
152 $html = str_replace( $none,
'', $html );
155 $html = str_replace( array(
' ',
' ',
' ',
' ' ) ,
' ', $html );
157 return trim( $html );