Match ckeditor output, just in case save doesn't reformat.
class ArchiveArticle
{
public $raw, $title, $body; # file contents
class ArchiveArticle
{
public $raw, $title, $body; # file contents
+ public $meta = []; # head metadata properties
function __construct($path)
{
function __construct($path)
{
# restore meta tags in static contents for editing
foreach (array_reverse($Article->meta) as $metaprop => $val) {
$Article->raw = sprintf(
# 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;
}
$metaprop, $val
) . $Article->raw;
}