29 Mar
2002
29 Mar
'02
5:38 p.m.
----- Original Message ----- From: "Michel Vayssade" <michel.vayssade@utc.fr> To: <zope@zope.org> Sent: Friday, March 29, 2002 12:34 Subject: [Zope] quotes
Hi,
Inside a dtml I write back to the browser the previous content of a form with : <input type="text" size="20" name="<dtml-var "lesattr[index]">" class="form-element" value="<dtml-var "lesvals[index]">" >
<input type="text" size="50" name=txt<dtml-var sequence-index> class="form-element" value="<dtml-var "lisvals[_['sequence-index']][0]">" >
all is good ... until somebody enter a text including double-quotes then dtml take the " in the text as the terminating quote
how can I deal with these embeded quotes ?
a) slap the user b) replace the all quotes by _.chr(34) -aj