mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
fix: only escape iframe,script and link for html output (#3882)
This commit is contained in:
parent
1fecc4cfc1
commit
2e5d2a88f3
3 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ class AtomFormat extends FormatAbstract
|
|||
|
||||
$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) {
|
||||
|
|
|
@ -47,7 +47,7 @@ class JsonFormat extends FormatAbstract
|
|||
$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();
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ class MrssFormat extends FormatAbstract
|
|||
$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';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue