Просмотр исходного кода

Merge pull request #172 from Trismegiste/bugfix-html-output

The 'html' tag is missing in HTML output
smiley 3 лет назад
Родитель
Сommit
b9183b7c38
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Output/QRMarkupHTML.php

+ 1 - 1
src/Output/QRMarkupHTML.php

@@ -42,7 +42,7 @@ class QRMarkupHTML extends QRMarkup{
 		// wrap the snippet into a body when saving to file
 		// wrap the snippet into a body when saving to file
 		if($saveToFile){
 		if($saveToFile){
 			$html = sprintf(
 			$html = sprintf(
-				'<!DOCTYPE html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body>',
+				'<!DOCTYPE html><html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body></html>',
 				$this->options->eol.$html
 				$this->options->eol.$html
 			);
 			);
 		}
 		}