[Zope] Write out "

Thomas B. Passin tpassin@mitretek.org
Tue, 22 May 2001 12:10:51 -0400


[Gitte Wange]
I need to write out the character "
How ?

I can't do this:
<dtml-let string="'<body bgcolor="#000000"'">

I have tried with:
<dtml-let string="<body bgcolor=\"#000000\"'">
but that doesn't work either.

How do I do it ?

[Tom]
Why do you need to?  If you do, what's wrong with

<body bgcolor=''>

??
If you need to concatenate it with something else (why???), what's wrong
with

<dtml-let emptystring="''">

That's two single quotes inside a pair of double quotes.

or,

<dtml-let emptystring="\"\"">

if you absolutely have to have double quotes.  Don't go fooling around with
zero bytes.

Cheers,

Tom P