Replace quotes in title with escaped quotes

This commit is contained in:
Joe Fitzsimmons II
2019-09-20 16:09:23 -04:00
parent d17bfcb61b
commit 887fee715d
+1 -1
View File
@@ -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) {