updated script to fix single and double quotes dying with xml
authorMatthewOwens <matthew@owens.tech>
Fri, 24 Jul 2020 08:38:52 +0000 (09:38 +0100)
committerMatthewOwens <matthew@owens.tech>
Fri, 24 Jul 2020 08:38:52 +0000 (09:38 +0100)
scripts/gen_feed_item.sh

index 34adfbd..22502a9 100755 (executable)
@@ -3,7 +3,7 @@
 
 HTMLPATH=$(echo $1 | sed 's/\.md$/.html/')
 TITLE=$(scripts/post_title.sh $1)
-BODY=$(markdown $1 | sed -e 's/&rsquo;/'/g -e 's/&lsquo;//g')
+BODY=$(markdown $1 | sed -e "s/&[rl]squo;/\'"/g -e 's/&[rl]dquo;/\"/g')
 DATE=$(git log -1 --pretty="format:%ad" $1)
 
 echo "<item>"