diff options
author | EuAndreh <eu@euandre.org> | 2022-09-02 12:07:08 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-09-02 12:07:08 -0300 |
commit | 40548f9c5788d965976c2174b6b87a0ce2961924 (patch) | |
tree | eaee32b1ef4c65113a712ec0c679a4712973b470 /v2/src/development | |
parent | Make `url-for` and `absolute` standalone executables (diff) | |
download | euandre.org-40548f9c5788d965976c2174b6b87a0ce2961924.tar.gz euandre.org-40548f9c5788d965976c2174b6b87a0ce2961924.tar.xz |
v2/src/development/genhtml.sh: Use `htmlesc` over `html`
Diffstat (limited to '')
-rwxr-xr-x | v2/src/development/genhtml.sh | 6 |
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" |