Declare summary of atom feed items as HTML

RFC4287 Section 3.1.1 requires HTML content to be declared
as such with the "type" attribute, this commit adds that attribute
to the generated atom feeds.
This commit is contained in:
Yannik Enss 2019-08-15 23:42:44 +02:00
parent 76a7ceb27b
commit 770202e03d
1 changed files with 1 additions and 1 deletions

View File

@ -77,6 +77,6 @@ function make_atom_entry_from_news($news_entry)
page_link_to('news_comments', ['nid' => $news_entry['ID']]) page_link_to('news_comments', ['nid' => $news_entry['ID']])
) . '</id> ) . '</id>
<updated>' . date('Y-m-d\TH:i:sP', $news_entry['Datum']) . '</updated> <updated>' . date('Y-m-d\TH:i:sP', $news_entry['Datum']) . '</updated>
<summary>' . htmlspecialchars($news_entry['Text']) . '</summary> <summary type="html">' . htmlspecialchars($news_entry['Text']) . '</summary>
</entry>' . "\n"; </entry>' . "\n";
} }