[Zope] dtml syntax error with quotes

Christopher J. Kucera ckucera@globalcrossing.com
Tue, 28 Mar 2000 15:36:48 -0600


julio dinis wrote:
> This code results in a error:
> 
> <dtml-let MyVar="_.string.replace(Mytext,'"','&quot;')">

Try this (untested):

<dtml-let MyVar="_.string.replace(Mytext,'\x22','&quot;')">

\x22 = "
\x27 = '

-CJ