Merge pull request #11 from jfitzsimmons2/title-quote-fix

Replace quotes in title with escaped quotes
This commit is contained in:
Will Boyd
2019-12-08 08:36:42 -05:00
committed by GitHub
+1 -1
View File
@@ -210,7 +210,7 @@ function getPostSlug(post) {
} }
function getPostTitle(post) { function getPostTitle(post) {
return post.title[0].trim(); return post.title[0].trim().replace(/"/g, '\\"');
} }
function getPostDate(post) { function getPostDate(post) {