From af51d3abc933707a6cba2d5ec9a1ee44492bcac7 Mon Sep 17 00:00:00 2001 From: MatthewOwens Date: Fri, 24 Jul 2020 09:38:52 +0100 Subject: [PATCH] updated script to fix single and double quotes dying with xml --- scripts/gen_feed_item.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_feed_item.sh b/scripts/gen_feed_item.sh index 34adfbd..22502a9 100755 --- a/scripts/gen_feed_item.sh +++ b/scripts/gen_feed_item.sh @@ -3,7 +3,7 @@ HTMLPATH=$(echo $1 | sed 's/\.md$/.html/') TITLE=$(scripts/post_title.sh $1) -BODY=$(markdown $1 | sed -e 's/’/'/g -e 's/‘//g') +BODY=$(markdown $1 | sed -e "s/&[rl]squo;/\'"/g -e 's/&[rl]dquo;/\"/g') DATE=$(git log -1 --pretty="format:%ad" $1) echo "" -- 2.20.1