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 %>