🚿 add missing <html> tag (#172)

This commit is contained in:
smiley
2022-12-05 14:35:26 +01:00
parent c4bbb199b3
commit fd4370d7ea
+5 -3
View File
@@ -74,9 +74,11 @@ class QRMarkup extends QROutputAbstract{
$html .= '</div>'.$this->options->eol;
if($file !== null){
return '<!DOCTYPE html>'.
'<head><meta charset="UTF-8"><title>QR Code</title></head>'.
'<body>'.$this->options->eol.$html.'</body>';
/** @noinspection HtmlRequiredLangAttribute */
return sprintf(
'<!DOCTYPE html><html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body></html>',
$this->options->eol.$html
);
}
return $html;