From a0ba4030d706312c9a9655dd0fe707ca09165c4e Mon Sep 17 00:00:00 2001 From: Lukas Erni Date: Tue, 26 Nov 2024 21:29:37 +0100 Subject: [PATCH] HTML5 `` --- src/Control/HTTPResponse.php | 2 +- src/View/Parsers/HTMLValue.php | 2 +- templates/BlankPage.ss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Control/HTTPResponse.php b/src/Control/HTTPResponse.php index d16ef1e99fa..f75b4a8884f 100644 --- a/src/Control/HTTPResponse.php +++ b/src/Control/HTTPResponse.php @@ -117,7 +117,7 @@ class HTTPResponse * @var array */ protected $headers = [ - "content-type" => "text/html; charset=utf-8", + "charset" => "utf-8", ]; /** diff --git a/src/View/Parsers/HTMLValue.php b/src/View/Parsers/HTMLValue.php index f7accf29542..189779bc0df 100644 --- a/src/View/Parsers/HTMLValue.php +++ b/src/View/Parsers/HTMLValue.php @@ -35,7 +35,7 @@ public function setContent($content) $content = preg_replace('#]*>#si', '', $content); $html5 = new HTML5(['disable_html_ns' => true]); $document = $html5->loadHTML( - '' . + '' . "$content" ); if ($document) { diff --git a/templates/BlankPage.ss b/templates/BlankPage.ss index 84d06519273..d9e6dbf55aa 100644 --- a/templates/BlankPage.ss +++ b/templates/BlankPage.ss @@ -1,7 +1,7 @@ - + $Title <% base_tag %>