$procache→minifyHtml()
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
| Name | Type(s) | Description |
|---|---|---|
$html | string | 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
boolTrue on success, false on fail
$procache methods and properties
API reference based on ProcessWire core version 3.0.252