Skip to content
Snippets Groups Projects
Commit 86f2764a authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#59753, Use <content:encoded> NOT <content> for RSS item description, patch by Budda

parent 8207690a
No related branches found
No related tags found
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
......@@ -861,8 +861,8 @@ function aggregator_parse_feed(&$data, $feed) {
/**
* Atom feeds have a CONTENT and/or SUMMARY tag instead of a DESCRIPTION tag
*/
if ($item['CONTENT']) {
$item['DESCRIPTION'] = $item['CONTENT'];
if ($item['CONTENT:ENCODED']) {
$item['DESCRIPTION'] = $item['CONTENT:ENCODED'];
}
else if ($item['SUMMARY']) {
$item['DESCRIPTION'] = $item['SUMMARY'];
......
......@@ -861,8 +861,8 @@ function aggregator_parse_feed(&$data, $feed) {
/**
* Atom feeds have a CONTENT and/or SUMMARY tag instead of a DESCRIPTION tag
*/
if ($item['CONTENT']) {
$item['DESCRIPTION'] = $item['CONTENT'];
if ($item['CONTENT:ENCODED']) {
$item['DESCRIPTION'] = $item['CONTENT:ENCODED'];
}
else if ($item['SUMMARY']) {
$item['DESCRIPTION'] = $item['SUMMARY'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment