Skip to content

Commit

Permalink
avoid xss in rssfeed content
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh authored and trasher committed Jan 24, 2023
1 parent e3be02c commit aec5c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RSSFeed.php
Expand Up @@ -856,7 +856,7 @@ public function showFeedContent()
'title' => $item->get_title(),
'link' => URL::sanitizeURL($item->get_permalink()),
'timestamp' => Html::convDateTime($item->get_date('Y-m-d H:i:s')),
'content' => $item->get_content()
'content' => RichText::getSafeHtml($item->get_content()),
];
}
} else {
Expand Down

0 comments on commit aec5c2d

Please sign in to comment.