Revert escaping of feed content

This results in double-escaped content since lowdown(1) already
sufficiently escapes the HTML. Escaping was not actually necessary, and
the feed is valid without this.
This commit is contained in:
Jake Bauer 2023-07-20 14:00:06 -04:00
parent ad6cc3933f
commit 91b24a20d6
1 changed files with 2 additions and 2 deletions

4
sbs
View File

@ -158,7 +158,7 @@ genfeed()
printf "\t\t<link href=\"%s%s/%s\" />\n" "$siteURL" "$subDir" "$fileName"
printf "\t\t<id>%s%s/%s</id>\n" "$siteURL" "$subDir" "$fileName"
printf "\t\t<updated>%s</updated>\n" "${date}T00:00:00Z"
printf "\t\t<content type=\"html\"><![CDATA[\n%s\n\t\t]]></content>\n" "$(lowdown $buildOptions "$file" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')"
printf "\t\t<content type=\"html\"><![CDATA[\n%s\n\t\t]]></content>\n" "$(lowdown $buildOptions "$file")"
printf "\t</entry>\n\n"
} >> static/feed.xml
done
@ -320,7 +320,7 @@ case "$1" in
push
;;
"version")
echo "v1.2.0" ;
echo "v1.2.1" ;
;;
*)
echo "Unknown command. See sbs(1) for documentation."