From 887fee715d819fc10f697824f598f42ffd0951cb Mon Sep 17 00:00:00 2001 From: Joe Fitzsimmons II Date: Fri, 20 Sep 2019 16:09:23 -0400 Subject: [PATCH] Replace quotes in title with escaped quotes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 21f50cb..8f50b13 100644 --- a/index.js +++ b/index.js @@ -210,7 +210,7 @@ function getPostSlug(post) { } function getPostTitle(post) { - return post.title[0].trim(); + return post.title[0].trim().replace(/"/g, '\\"'); } function getPostDate(post) {