mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 00:56:55 +02:00
handles charset in metadata
This commit is contained in:
@@ -1324,6 +1324,8 @@ class Page
|
||||
if ($value) {
|
||||
if (in_array($key, $header_tag_http_equivs)) {
|
||||
$this->metadata[$key] = ['http_equiv' => $key, 'content' => htmlspecialchars($value, ENT_QUOTES)];
|
||||
} elseif ($key == 'charset') {
|
||||
$this->metadata[$key] = ['charset' => htmlspecialchars($value, ENT_QUOTES)];
|
||||
} else {
|
||||
// if it's a social metadata with separator, render as property
|
||||
$separator = strpos($key, ':');
|
||||
|
||||
Reference in New Issue
Block a user