From 40548f9c5788d965976c2174b6b87a0ce2961924 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 2 Sep 2022 12:07:08 -0300 Subject: v2/src/development/genhtml.sh: Use `htmlesc` over `html` --- v2/src/development/genhtml.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'v2/src/development') diff --git a/v2/src/development/genhtml.sh b/v2/src/development/genhtml.sh index 3f1bca6..26da89e 100755 --- a/v2/src/development/genhtml.sh +++ b/v2/src/development/genhtml.sh @@ -95,7 +95,7 @@ translate() { } _() { - translate "$1" | html + translate "$1" | htmlesc } SEEN_SLUGS="$(mkstemp)" @@ -139,7 +139,7 @@ extract_plaintext_snippets() { fi if [ -n "$IN_BLOCK" ]; then - printf '%s\n' "$line" | html -d >> "$OUT" + printf '%s\n' "$line" | htmlesc -d >> "$OUT" fi if printf '%s' "$line" | grep -q '^
'; then
@@ -148,7 +148,7 @@ extract_plaintext_snippets() {
 				BLOCK_NUMBER=$((BLOCK_NUMBER + 1))
 				printf '%s\n' "$line" |
 					sed 's|^\(
\)\(.*\)$|\2|' |
-					html -d > "$OUT"
+					htmlesc -d > "$OUT"
 			fi
 		done < "$F"
 
-- 
cgit v1.2.3