fix(html_format): add spacing below date if author is missing (#3425)

* small ui tweak

* remove unused <div>

* refactor: rename method

* refactor: inline const

* refactor
This commit is contained in:
Dag 2023-06-08 23:04:16 +02:00 committed by GitHub
parent 95071d0134
commit fbaf26e8bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 14 additions and 31 deletions

View file

@ -158,7 +158,7 @@ class AtomFormat extends FormatAbstract
$content = $document->createElement('content');
$content->setAttribute('type', 'html');
$content->appendChild($document->createTextNode(sanitize_html($entryContent)));
$content->appendChild($document->createTextNode(break_annoying_html_tags($entryContent)));
$entry->appendChild($content);
foreach ($item->getEnclosures() as $enclosure) {

View file

@ -47,7 +47,7 @@ class JsonFormat extends FormatAbstract
$entryTitle = $item->getTitle();
$entryUri = $item->getURI();
$entryTimestamp = $item->getTimestamp();
$entryContent = $item->getContent() ? sanitize_html($item->getContent()) : '';
$entryContent = $item->getContent() ? break_annoying_html_tags($item->getContent()) : '';
$entryEnclosures = $item->getEnclosures();
$entryCategories = $item->getCategories();

View file

@ -103,7 +103,7 @@ class MrssFormat extends FormatAbstract
$itemTimestamp = $item->getTimestamp();
$itemTitle = $item->getTitle();
$itemUri = $item->getURI();
$itemContent = $item->getContent() ? sanitize_html($item->getContent()) : '';
$itemContent = $item->getContent() ? break_annoying_html_tags($item->getContent()) : '';
$entryID = $item->getUid();
$isPermaLink = 'false';