ProCacheMinifyHTML::minify() method

Minify and return the given HTML content

Usage

// basic usage
$string = $min->minify(string $html);

// usage with all arguments
$string = $min->minify(string $html, array $options = []);

Arguments

NameType(s)Description
$htmlstring

HTML markup to minify

$options (optional)array

Optionally specify an array of $options, or can use setOption() method.

Return value

string

Minified HTML markup


$min methods and properties

API reference based on ProcessWire core version 3.0.252