From: Paul Hänsch Date: Fri, 12 Mar 2021 10:25:45 +0000 (+0100) Subject: escape search string for display X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=a75a76b164c7512effa94f370cadfc094f006a1e;p=serve0 escape search string for display --- diff --git a/widgets.sh b/widgets.sh index 5cd371b..4b36b35 100644 --- a/widgets.sh +++ b/widgets.sh @@ -218,7 +218,7 @@ w_advsearch(){ printf '[label [checkbox "tag_%s" "%s" %s] %s]' "$n" "$tag" "$t" "$d" done d="${f##*\$:}" d="${d%%\|*}" - [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$d" + [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$(HTML "$d")" printf '\n]' done printf ']'