[Zope] structured text with <dtml> tags?

Pavlos Christoforou pavlos@gaaros.com
Tue, 22 Feb 2000 23:08:07 -0500 (EST)


On Tue, 22 Feb 2000, R. David Murray wrote:

> On Tue, 22 Feb 2000, Alex Burton wrote:
> >   I'm still discovering Zope and I'm having fun with structured text. 

Yes I really like it too.

> a way to supress the interpretation of *html* inside structure text
> (or, rather, to have the structured text output quote the html as

Well it can be done already if it is part of code section, ie:

  the following is not going to be interpret::

   <H1>Hello</H1>

> appropriate to get it to render rather than interpret), thus allowing
> structured text fields to be used as a safe data entry format for
> a portal-type site.  I'm guessing that there's a function I can
> call to do this encoding before passing the thing to the structured
> text interpreter, but I'm not sure what the magic incantation is.
> Can someone enlighten me?


Oh I see you are asking a different question. Unfortunately the way to do
it is to use the html-quote format parameter and I do not know of a way to
to include two format parameters. But in the case of entry forms couldn't
you html-quote the form input fields before storing them?


Pavlos