[Zope-dev] Escape characters in dtml
Adam Pawliuk
apawliuk@aui.ca
Mon, 1 May 2000 11:47:55 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0024_01BFB363.167E8DB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I'm having problems trying to escape a double quotes in a DTML call.
For example:
<dtml-call "REQUEST.set('FUTURE_URL','<A =
href=3D"adocument?id=3D133">click</A>' )">
The double quotes for the 'href' cause problems with the expression =
double quotes. I tried escaping with \" but this doesn't work either.
Any suggestions?
Thanks in advance.
------=_NextPart_000_0024_01BFB363.167E8DB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm having problems trying to escape a =
double=20
quotes in a DTML call.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>For example:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-call =
"REQUEST.set('FUTURE_URL','<A=20
href=3D"adocument?id=3D133">click</A>' )"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The double quotes for the 'href' cause =
problems=20
with the expression double quotes. I tried escaping with \" but this =
doesn't=20
work either.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Any suggestions?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in =
advance.</FONT></DIV></BODY></HTML>
------=_NextPart_000_0024_01BFB363.167E8DB0--