Published on:
tags, and we assume content was already sanitized
// if content can contain html, you might need a more sophisticated approach
echo nl2br(htmlspecialchars($post['content'] ?? 'No content available.'));
?>