mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-01-31 15:00:14 +00:00
16 lines
459 B
JavaScript
16 lines
459 B
JavaScript
|
module.exports = function (item, itemOptions) {
|
||
|
if (!item || !itemOptions) {
|
||
|
return;
|
||
|
}
|
||
|
// content:encoded (i.e. description)
|
||
|
if (item["content:encoded"] && item["content:encoded"]["#"]){
|
||
|
var content_encoded = item["content:encoded"]["#"];
|
||
|
itemOptions.custom_elements.push(
|
||
|
{ "content:encoded":
|
||
|
{
|
||
|
_cdata: content_encoded
|
||
|
}
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
};
|