mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-22 13:35:13 +00:00
🚿 add missing <html> tag (#172)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user