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="adocument?id=133">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.
Try: <dtml-call "REQUEST.set('FUTURE_URL','<A href='+_.chr(34)+'adocument?id=133'+_.chr(34)+'>click</A>' )"> ----- Original Message ----- From: Adam Pawliuk To: zope-dev@zope.org Sent: Monday, May 01, 2000 1:47 PM Subject: [Zope-dev] Escape characters in dtml 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="adocument?id=133">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.
participants (2)
-
Adam Pawliuk -
Jim Sanford