X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/9e355758760cfa0c3d34759d22875c9d82ddd971..e8a4197dcaf454b4dbe76d5ddd84f63fa5693ab9:/lib/generators/rss.js?ds=sidebyside diff --git a/lib/generators/rss.js b/lib/generators/rss.js index ec45dc8..4ae3925 100644 --- a/lib/generators/rss.js +++ b/lib/generators/rss.js @@ -13,7 +13,11 @@ const internals = { extractTitle(postText) { - return postText.trim().split('\n')[0].replace('#', '').trim(); + return postText.trim() + .split('\n')[0] + .replace('#', '') + .replace(/&/g, '&') + .trim(); } };