From b9a748dafccc7f28aa695d3590be952560eedb35 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 8 May 2023 00:47:13 +0300 Subject: also escape ' properly --- lib/html.source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/html.source.sh') diff --git a/lib/html.source.sh b/lib/html.source.sh index 7056f24..8f057a0 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -4,6 +4,7 @@ html::encode () { s|\&|\&|g; s|<|\<|g; s|>|\>|g; + s|'\''|\'|g; ' <<< "$@" } @@ -70,7 +71,7 @@ html::make_link () { descr="$link" fi - echo "$descr
" + echo "$descr
" } html::process_inline () { -- cgit v1.2.3