def form.quote
import emerging-ezhttp@0.21.0.0/src/form.bend as Formimport Base
155# a name or filename as the inside of its quoted-string, as HTML's form
156# submission writes it: `"`, CR and LF percent-encoded, the rest as itself
157def form.quote(s: String) -> String:
158 match s:
159 case SNil{}:
160 SNil{}
161 case SCon{Chr{+cp}, tail}:
162 form.one(cp, form.quote(tail))