<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">doesn't work. the double quotes are not escaped and zope sees them as the end of the expression.</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> From: "Jaroslav Lukesh" <</FONT><FONT class="Apple-style-span" color="#0000FF" face="Times New Roman"><SPAN class="Apple-style-span" style="text-decoration: underline;"><A href="mailto:lukesh@seznam.cz">lukesh@seznam.cz</A></SPAN></FONT><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> Date: August 29, 2007 6:16:12 PM EDT</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> To: "Zope user list" <</FONT><FONT class="Apple-style-span" color="#0000FF" face="Times New Roman"><SPAN class="Apple-style-span" style="text-decoration: underline;"><A href="mailto:zope@zope.org">zope@zope.org</A></SPAN></FONT><FONT class="Apple-style-span" face="Times New Roman">>, "Tom Von Lahndorff" </FONT><FONT class="Apple-style-span" face="Times New Roman"> </FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> <</FONT><FONT class="Apple-style-span" color="#0000FF" face="Times New Roman"><SPAN class="Apple-style-span" style="text-decoration: underline;"><A href="mailto:tom@modscape.com">tom@modscape.com</A></SPAN></FONT><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> Subject: Re: [Zope] Stripping Quotes</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> <dtml-var "_.str('string\"with\'quotes').replace('\"','').replace</FONT><FONT class="Apple-style-span" face="Times New Roman"> </FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> ('\'','')"></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> ----- Original Message ----- From: "Tom Von Lahndorff" </FONT><FONT class="Apple-style-span" face="Times New Roman"> </FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">> <</FONT><FONT class="Apple-style-span" color="#0000FF" face="Times New Roman"><SPAN class="Apple-style-span" style="text-decoration: underline;"><A href="mailto:tom@modscape.com">tom@modscape.com</A></SPAN></FONT><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">>> Whats the best way to strip (double and/or single) quotes from a</FONT><FONT class="Apple-style-span" face="Times New Roman"> </FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman">>> string in python and/or dtml? Thanks.</FONT></DIV></BODY></HTML>