From 91b24a20d640c3de1763bd443e3c6832040811f8 Mon Sep 17 00:00:00 2001 From: Jake Bauer Date: Thu, 20 Jul 2023 14:00:06 -0400 Subject: [PATCH] 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. --- sbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbs b/sbs index aa5a9de..5513dc8 100755 --- a/sbs +++ b/sbs @@ -158,7 +158,7 @@ genfeed() printf "\t\t\n" "$siteURL" "$subDir" "$fileName" printf "\t\t%s%s/%s\n" "$siteURL" "$subDir" "$fileName" printf "\t\t%s\n" "${date}T00:00:00Z" - printf "\t\t\n" "$(lowdown $buildOptions "$file" | sed 's/&/\&/g; s//\>/g; s/"/\"/g; s/'"'"'/\'/g')" + printf "\t\t\n" "$(lowdown $buildOptions "$file")" printf "\t\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."