Минификатор:
Код: Выделить всё
function sanitize_output($buffer) {
$search = array(
'/\>[^\S ]+/s',
'/[^\S ]+\/'
);
$replace = array(
'',
'
Подробнее здесь: [url]https://stackoverflow.com/questions/52084864/how-to-minify-only-specified-file-part-of-page-using-php[/url]
Мобильная версия