[Zope] HTML-Code in variables (addition)

Tino Wildenhain tino@wildenhain.de
Sat, 07 Oct 2000 22:20:39 +0200


Hi Lars,

Lars Heber wrote:
> 
> Sorry, I mixed something up. Normal html is no problem at all.
> The problem is how to use quotes or such things.
> 
> Of course I get an error by typing:
> 
> <dtml-let text="my html text with a link to <a
> href="http://www.yahoo.com">Yahoo!</a>">
> 
> I tried typing &quot; instead of ", but then the "&quot;" also goes into
> the html code on my page - thus the link is broken...
> 
> Are there any possibilities to let Zope change the &quot; into ", or
> perhaps there is another way to do it like with the \" in C.

Yes, there is. Use documenttemplates for this. This is exactly what Zope
is designed for :-)
I.e. make an dtml-method with the text instead of trying to build it
like
this.

Regards
Tino