protected function wrapInHtml5Document($nodes, $charset = null) {
        $charset = strtolower($charset ?: Validator::CHARSET_UTF_8);

        $document  = '<!DOCTYPE html>' . PHP_EOL;
        $document .= '<html><head>' . PHP_EOL;
        $document .= '<meta charset="' . $charset . '">' . PHP_EOL;
        $document .= '<title>Validation document</title>' . PHP_EOL;
        $document .= '</head><body>' . $nodes . '</body></html>';

        return $document;
    }
protected function wrapInHtml5Document($nodes, $charset = null) {
        $charset = strtolower($charset ?: Validator::CHARSET_UTF_8);

        $document  = '<!DOCTYPE html>' . PHP_EOL;
        $document .= '<html><head>' . PHP_EOL;
        $document .= '<meta charset="' . $charset . '">' . PHP_EOL;
        $document .= '<title>Validation document</title>' . PHP_EOL;
        $document .= '</head><body>' . $nodes . '</body></html>';

        return $document;
    }
protected function wrapInHtml5Document ( $ nodes , $ charset = null ) { $ charset = strtolower ( $ charset ? : Validator :: CHARSET_UTF_8 ) ; $ document = '<!DOCTYPE html>' . PHP_EOL ; $ document .= '<html><head>' . PHP_EOL ; $ document .= '<meta charset="' . $ charset . '">' . PHP_EOL ; $ document .= '<title>Validation document</title>' . PHP_EOL ; $ document .= '</head><body>' . $ nodes . '</body></html>' ; return $ document ; }
Wraps a set of HTML nodes in an HTML5-document

@param  string $nodes   One or more HTML-nodes, as a string
@param  string $charset Charset to specify in meta tag
@return string
Wraps a set of HTML nodes in an HTML5 - document