$procacheminifyHtml()

Minify given HTML directly

Usage

// basic usage
$bool = $procache->minifyHtml(string $html);

// usage with all arguments
$bool = $procache->minifyHtml(string $html, array $options = [], bool $debug = false);

Arguments

NameType(s)Description
$htmlstring

HTML must be provided in a variable as it is modified directly

$options (optional)array

Options to modify behavior

$debug (optional)bool

Enable debug mode? Default:false

Return value

bool

True on success, false on fail


$procache methods and properties

API reference based on ProcessWire core version 3.0.252