[Zope] Delete quotes in strings

Cornelis J. de Brabander brabander@fsw.LeidenUniv.nl
Wed, 23 May 2001 10:46:37 +0200


Hi Frank,
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Frank
> Zorge
> Sent: dinsdag 22 mei 2001 16:03
> To: zope@zope.org
> Subject: [Zope] Delete quotes in strings
>
>
> Hi,
> Does anyone know how to delete quotes in strings, for instance delete the
> quotes in: 'hello'. I tried to use string.replace but I don't get
> the syntax
> right.
> <dtml-call "REQUEST.set('var',_.string.replace(var,''',' ')">
> Or maybe there's a better way?

<dtml-call "REQUEST.set('var',_.string.replace(var,'\'',' '))">
                                                    ^       ^
greetings, cb