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
| Name | Type(s) | Description |
|---|---|---|
$html | string | HTML markup to minify |
$options (optional) | array | Optionally specify an array of $options, or can use setOption() method. |
Return value
stringMinified HTML markup
API reference based on ProcessWire core version 3.0.252