I have HTML code like:
-
/', '', $content);
}
function sanitize_output($buffer) {
$search = array(
'/\>[^\S ]+/s', // strip whitespaces after tags, except space
'/[^\S ]+\',
'<',
'\\1'
);
$buffer = preg_replace($search, $replace, $buffer);
return remove_html_comments($buffer);
}
if(COMPRESSOR){ ob_start("sanitize_output"); }
?>
Example 1
This is example
RESULT: Example 1 This is example
- 热议问题