[Zope] Escaoe " in string
Oleg Broytmann
Oleg Broytmann <phd@phd.pp.ru>
Fri, 5 Oct 2001 14:20:25 +0400
On Fri, Oct 05, 2001 at 12:16:24PM +0200, Gitte Wange wrote:
> On fre, 2001-10-05 at 12:11, Oleg Broytmann wrote:
> > On Fri, Oct 05, 2001 at 11:59:16AM +0200, Gitte Wange wrote:
> > > How do you escape " in a <dtml-call> ??
> >
> > You cannot - DTML parser is too simple. Use _.chr(34) instead.
>
> Sorry I don't know what _.chr(34) is .... please explain.
I have not much time, sorry. Read docs. In short: _ isnamespace, chr is
python function to convert int to char. Example:
<dtml-var "_.string.replace(title, _.chr(34), ' ')">
will replace all " in title to spaces.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.