diff --git a/lib/rss.js b/lib/rss.js index 6cd643eb..62255028 100644 --- a/lib/rss.js +++ b/lib/rss.js @@ -21,7 +21,7 @@ const generateRssItem = (item) => { ${SITE_URL}/items/${item.id} ${escapeXml(item.title)} - ${link} + ${escapeXml(link)} ${guid} Comments]]> ${new Date(item.createdAt).toUTCString()} @@ -32,14 +32,14 @@ const generateRssItem = (item) => { export default function generateRssFeed (items) { const itemsList = items.map(generateRssItem) return ` - + ${SITE_TITLE} ${SITE_URL} ${SITE_SUBTITLE} en ${new Date().toUTCString()} - ${SITE_URL} + ${itemsList.join('')}