Skip to content

Commit

Permalink
fix: only escape iframe,script and link for html output
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan committed Jan 9, 2024
1 parent 0c08f79 commit 8c608fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion formats/AtomFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function stringify()

$content = $document->createElement('content');
$content->setAttribute('type', 'html');
$content->appendChild($document->createTextNode(break_annoying_html_tags($entryContent)));
$content->appendChild($document->createTextNode($entryContent));
$entry->appendChild($content);

foreach ($item->getEnclosures() as $enclosure) {
Expand Down
2 changes: 1 addition & 1 deletion formats/JsonFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function stringify()
$entryTitle = $item->getTitle();
$entryUri = $item->getURI();
$entryTimestamp = $item->getTimestamp();
$entryContent = $item->getContent() ? break_annoying_html_tags($item->getContent()) : '';
$entryContent = $item->getContent() ?? '';
$entryEnclosures = $item->getEnclosures();
$entryCategories = $item->getCategories();

Expand Down
2 changes: 1 addition & 1 deletion formats/MrssFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function stringify()
$itemTimestamp = $item->getTimestamp();
$itemTitle = $item->getTitle();
$itemUri = $item->getURI();
$itemContent = $item->getContent() ? break_annoying_html_tags($item->getContent()) : '';
$itemContent = $item->getContent() ?? '';
$itemUid = $item->getUid();
$isPermaLink = 'false';

Expand Down

0 comments on commit 8c608fd

Please sign in to comment.