From 372ddf2792e74608ffea4e902b7f3f7c9dfb1402 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Tue, 13 Oct 2015 18:04:45 +0200 Subject: [PATCH] Core: add author to HTML output format --- formats/HtmlFormat.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php index 78599164..4bc48abd 100644 --- a/formats/HtmlFormat.php +++ b/formats/HtmlFormat.php @@ -19,13 +19,15 @@ class HtmlFormat extends FormatAbstract{ $entryUri = is_null($data->uri) ? $uri : $data->uri; $entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title)); $entryTimestamp = is_null($data->timestamp) ? '' : ''; + $entryAuthor = is_null($data->author) ? '' : '
by: ' . $data->author . ''; $entryContent = is_null($data->content) ? '' : '

' . $this->sanitizeHtml($data->content). '

'; $entries .= <<

{$entryTitle}

{$entryTimestamp} - {$entryContent} + {$entryAuthor} + {$entryContent} EOD;