Skip to content
Snippets Groups Projects
Commit 92758279 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Bugfix: wrapped an RSS item's description in a check_output() to ensure
  proper markup.
parent 3c7d0f95
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -504,7 +504,7 @@ function format_rss_item($title, $link, $description, $args = array()) {
$output .= "<item>\n";
$output .= " <title>". htmlentities(strip_tags($title)) ."</title>\n";
$output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n";
$output .= " <description>". htmlentities($description) ."</description>\n";
$output .= " <description>". htmlentities(check_output($description)) ."</description>\n";
foreach ($args as $key => $value) {
$output .= "<$key>". htmlentities(strip_tags($value)) ."</$key>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment