[Zope] R: [Zope] escaping with dtml?

Marcel Preda marcel@punto.it
Wed, 7 Jun 2000 18:24:48 +0200


----- Original Message -----
From: Riku Voipio <riku.voipio@tietoenator.com>
To: <zope@zope.org>
Sent: Wednesday, June 07, 2000 5:28 PM
Subject: [Zope] escaping with dtml?


> Hello,
> I'm trying to get some doubleqoutes to the final document,
> but I've been unsuccesful so far:
>
> <dtml-let hack="\"app\"
ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\'">
> </dtml-let>
>

Maybe is not the best solution, but works...

<dtml-let hack="'%sapp%s
ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\''
%('\x22','\x22')">
<dtml-var hack>
</dtml-let>

Interesting, isn't it?
:)

PM