~rbdr/blog

a9c02cac1fde01ac28dc1241d1e63f85a1ff03a2 — Ruben Beltran del Rio 7 months ago f140e92 5.0.0
Escape ampersand in titles
1 files changed, 5 insertions(+), 1 deletions(-)

M lib/generators/rss.js
M lib/generators/rss.js => lib/generators/rss.js +5 -1
@@ 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();
  }
};