Fix RSS rendering
This commit is contained in:
@@ -354,7 +354,7 @@ function renderRss(opts, msg) {
|
|||||||
var c = msg.value.content || {};
|
var c = msg.value.content || {};
|
||||||
var name = encodeURIComponent(msg.key);
|
var name = encodeURIComponent(msg.key);
|
||||||
|
|
||||||
let content = render(opts, c);
|
let content = h('div', render(opts, c)).innerHTML;
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
return null;
|
return null;
|
||||||
@@ -362,7 +362,7 @@ function renderRss(opts, msg) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
'<item>' +
|
'<item>' +
|
||||||
'<title>' + msg.author.name + ' | ' + c.type + '</title>' +
|
'<title>' + escape(msg.author.name + ' | ' + (c.type || 'private')) + '</title>' +
|
||||||
'<description><![CDATA[' + content + ']]></description>' +
|
'<description><![CDATA[' + content + ']]></description>' +
|
||||||
'<link>' + opts.base + escape(name) + '</link>' +
|
'<link>' + opts.base + escape(name) + '</link>' +
|
||||||
'<pubDate>' + new Date(msg.value.timestamp).toUTCString() + '</pubDate>' +
|
'<pubDate>' + new Date(msg.value.timestamp).toUTCString() + '</pubDate>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user