aboutsummaryrefslogtreecommitdiff
path: root/v2/src/development
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-09-02 12:07:08 -0300
committerEuAndreh <eu@euandre.org>2022-09-02 12:07:08 -0300
commit40548f9c5788d965976c2174b6b87a0ce2961924 (patch)
treeeaee32b1ef4c65113a712ec0c679a4712973b470 /v2/src/development
parentMake `url-for` and `absolute` standalone executables (diff)
downloadeuandre.org-40548f9c5788d965976c2174b6b87a0ce2961924.tar.gz
euandre.org-40548f9c5788d965976c2174b6b87a0ce2961924.tar.xz
v2/src/development/genhtml.sh: Use `htmlesc` over `html`
Diffstat (limited to 'v2/src/development')
-rwxr-xr-xv2/src/development/genhtml.sh6
1 files changed, 3 insertions, 3 deletions
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 '^<pre><code.*>'; then
@@ -148,7 +148,7 @@ extract_plaintext_snippets() {
BLOCK_NUMBER=$((BLOCK_NUMBER + 1))
printf '%s\n' "$line" |
sed 's|^\(<pre><code.*>\)\(.*\)$|\2|' |
- html -d > "$OUT"
+ htmlesc -d > "$OUT"
fi
done < "$F"