From: MatthewOwens Date: Fri, 24 Jul 2020 08:38:52 +0000 (+0100) Subject: updated script to fix single and double quotes dying with xml X-Git-Url: https://git.owens.tech/assets/static/gitweb.js/assets/static/gitweb.js/git?a=commitdiff_plain;h=af51d3abc933707a6cba2d5ec9a1ee44492bcac7;p=website.git updated script to fix single and double quotes dying with xml --- 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 ""