[Zope] Expressions with strings with double-quotations?

Sam Gendler sgendler@impossible.com
Tue, 21 Dec 1999 12:06:31 -0800


Michel Pelletier wrote:

> > -----Original Message-----
> > From: Dave Parker [mailto:dparker@globalcrossing.com]
> > Sent: Tuesday, December 21, 1999 8:51 AM
> > To: zope@zope.org
> > Subject: [Zope] Expressions with strings with double-quotations?
> >
> >
> > Well, this may sound silly, but...
> >
> > I've been having a heck of a time figuring out how to do DTML
> > expression
> > which builds a string which contains a double-quotation mark in Zope
> > 2.0.  I've tried \", which is supposed to be the Python
> > syntax for doing
> > it, but to no avail.  Any ideas?
> >
> > This is (theoretically) as in <dtml-var "'hello \" world'"> -
> > whenever I
> > try anything like this Zope misses the escape and terminates the
> > expression (colorfully)...
>
> This can't be done; You can't get there from here.
>
> -Michel

t seesm like you should be able to do something with the ascii code for a double
quote character.

--sam