projects
/
website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dab886
)
updated script to fix single and double quotes dying with xml
author
MatthewOwens
<matthew@owens.tech>
Fri, 24 Jul 2020 08:38:52 +0000
(09:38 +0100)
committer
MatthewOwens
<matthew@owens.tech>
Fri, 24 Jul 2020 08:38:52 +0000
(09:38 +0100)
scripts/gen_feed_item.sh
patch
|
blob
|
history
diff --git
a/scripts/gen_feed_item.sh
b/scripts/gen_feed_item.sh
index
34adfbd
..
22502a9
100755
(executable)
--- 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 "<item>"