Fireguard\Report\Exporters\AbstractPhantomExporter::getScript PHP Method

getScript() protected method

protected getScript ( $html, $heigth )
    protected function getScript($html, $heigth)
    {
        if (empty($html)) {
            return '';
        }
        $script = ' height: "' . $heigth . '",';
        $script .= ' contents: phantom.callback(function(numPage, totalPages) {';
        $script .= ' return "' . $html . '";"';
        $script .= '"})';
        return $script;
    }