page: editable meta tags without xml closure
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 2 Dec 2020 22:38:17 +0000 (23:38 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 5 Dec 2020 00:41:21 +0000 (01:41 +0100)
Match ckeditor output, just in case save doesn't reformat.

article.inc.php
page.php

index 6c3ca935be15bf0318a377564ba8d136b4f8239b..93bbe3b79f46dfb11b6c631d053030a164590c5a 100644 (file)
@@ -17,7 +17,7 @@ function showdate($parts)
 class ArchiveArticle
 {
        public $raw, $title, $body; # file contents
-       public $meta = [];
+       public $meta = [];  # head metadata properties
 
        function __construct($path)
        {
index 75540b64d06c9ebcd84f1a744f8083989a2028d0..c5ade115caf5b67a12564423f5a825810d7d5af4 100644 (file)
--- a/page.php
+++ b/page.php
@@ -175,7 +175,7 @@ if (isset($Article->raw)) {
                # restore meta tags in static contents for editing
                foreach (array_reverse($Article->meta) as $metaprop => $val) {
                        $Article->raw = sprintf(
-                               '<meta property="%s" content="%s" />'."\n",
+                               '<meta property="%s" content="%s">'."\n",
                                $metaprop, $val
                        ) . $Article->raw;
                }