[Zope] html_quote from Python

Peter Bengtsson peter@grenna.net
Tue, 27 Feb 2001 17:19:15 -0000


Here's how you do it in an External Method

from DocumentTemplate import DT_Util
text=DT_Util.html_quote(text)

Perhaps that might give you some hints.

----- Original Message ----- 
From: "John R. Daily" <jdaily@progeny.com>
To: <zope@zope.org>
Sent: Tuesday, February 27, 2001 5:04 PM
Subject: [Zope] html_quote from Python


> Is there a pre-built mechanism to invoke something like DTML's
> html_quote attribute from Python Scripts?
> 
> --                                                                   --
> John R. Daily                                        jdaily@progeny.com
> Systems Programmer                                Progeny Linux Systems
>   Master of the ephemeral epiphany
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )