Commit b99fb41a81ed0e6a2d0e1f32c5fae9ce6cf5d9de
Fix RSS rendering
cel committed on 6/11/2017, 12:32:13 AMParent: ee9c39f0499ced79d136914439eba10ccec934df
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -353,17 +353,17 @@ | ||
353 | 353 … | function renderRss(opts, msg) { |
354 | 354 … | var c = msg.value.content || {}; |
355 | 355 … | var name = encodeURIComponent(msg.key); |
356 | 356 … | |
357 | - let content = render(opts, c); | |
357 … | + let content = h('div', render(opts, c)).innerHTML; | |
358 | 358 … | |
359 | 359 … | if (!content) { |
360 | 360 … | return null; |
361 | 361 … | } |
362 | 362 … | |
363 | 363 … | return ( |
364 | 364 … | '<item>' + |
365 | - '<title>' + msg.author.name + ' | ' + c.type + '</title>' + | |
365 … | + '<title>' + escape(msg.author.name + ' | ' + (c.type || 'private')) + '</title>' + | |
366 | 366 … | '<description><![CDATA[' + content + ']]></description>' + |
367 | 367 … | '<link>' + opts.base + escape(name) + '</link>' + |
368 | 368 … | '<pubDate>' + new Date(msg.value.timestamp).toUTCString() + '</pubDate>' + |
369 | 369 … | '<guid>' + msg.key + '</guid>' + |
Built with git-ssb-web