Commit 86f2764a authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

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

parent 8207690a
......@@ -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'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment