parse(file_get_contents($filename)); $yml = $document->getYAML(); $content = $document->getContent(); $title = ($yml['title'] ?? 'invalid'); $author_san = htmlspecialchars($yml['author']); $description = "Draft {$_GET['name']}: {$yml['title']} by {$author_san}"; include 'header.php'; ?>
Author: =htmlspecialchars($yml['author'])?>
Updates: {$num}"; if(next($arr)) { echo ", "; }}?>
Updated by: {$num}"; if(next($arr)) { echo ", "; }}?>
=$content?>