[Zope] Escaoe " in string

Thomas B. Passin tpassin@mitretek.org
Fri, 5 Oct 2001 10:32:03 -0400


[Oleg Broytmann]

> On Fri, Oct 05, 2001 at 11:59:16AM +0200, Gitte Wange wrote:
> > How do you escape " in a <dtml-call> ??
>
>    You cannot - DTML parser is too simple. Use _.chr(34) instead.
>

You can escape a single quote  in dtml  using \'  (because it's Python that
handles it).  So you can do this:

<dtml-var "'This is a \'single\' quote'">

Doesn't work for a double quote, though, as Oleg said.

Tom P