[Zope] dtml syntax error with quotes
julio dinis
juliodinis@hotmail.com
Tue, 28 Mar 2000 14:25:07 PST
>julio dinis wrote:
> > This code results in a error:
> >
> > <dtml-let MyVar="_.string.replace(Mytext,'"','"')">
>
>Try this (untested):
>
><dtml-let MyVar="_.string.replace(Mytext,'\x22','"')">
>
>\x22 = "
>\x27 = '
Opps. It works, but my sugestion of using _.chr(34) also works.
I was looking at the wrong results when testing _.chr().
Thanks,
Julio
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com