[Zope] Python script newbie question

Casey Duncan cduncan@kaivo.com
Tue, 10 Apr 2001 08:11:50 -0600


Godefroid Chapelle wrote:
> 
> Hi all,
> 
> I am trying to produce a <br /> separated list with a python script :
> 
> for para in paraList:
>   result = result + para + '<br />'
> return result
> 
> The problem is that I get something like that :
> 
> para&lt;br /&gt;another para&lt;br /&gt;.....
> 
> Is there a way to avoid html quoting with python scripts or am I
> supposed to use DTML method in this case ?
> 
> --
> 
> Godefroid Chapelle
> 

How are you inserting the result of this function? If you use the entity
syntax &dtml-foo;, it does html quoting automatically.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>