public static compress ( string $data, null | array $options = null ) : string | ||
$data | string | is either a handle to an open file, or an HTML string |
$options | null | array | key => value array of execute options The possible keys are: - `c` or `no-comments` - removes HTML comments - `s` or `stats` - output filesize savings calculation - `x` or `extra` - perform extra (possibly unsafe) compression operations Example: HtmlCompressor::compress($HtmlCode, $options = ['no-comments' => true]) |
Résultat | string |