public function minify(array $options = array())
    {
        if (!class_exists('Wa72\\HtmlPrettymin\\PrettyMin')) {
            throw new \Exception('Function minify needs composer package wa72/html-pretty-min');
        }
        $pm = new PrettyMin($options);
        $pm->load($this->dom)->minify();
        return $this;
    }
public function minify(array $options = array())
    {
        if (!class_exists('Wa72\\HtmlPrettymin\\PrettyMin')) {
            throw new \Exception('Function minify needs composer package wa72/html-pretty-min');
        }
        $pm = new PrettyMin($options);
        $pm->load($this->dom)->minify();
        return $this;
    }
public function minify ( array $ options = array ( ) ) { if ( ! class_exists ( 'Wa72\\HtmlPrettymin\\PrettyMin' ) ) { throw new \ Exception ( 'Function minify needs composer package wa72/html-pretty-min' ) ; } $ pm = new PrettyMin ( $ options ) ; $ pm -> load ( $ this -> dom ) -> minify ( ) ; return $ this ; }
minify the HTML document

@param array $options Options passed to PrettyMin::__construct()
@return HtmlPage
@throws \Exception
minify the HTML document