[Zope] structured text to plain text
Dieter Maurer
dieter@handshake.de
Tue, 12 Jun 2001 22:10:32 +0200 (CEST)
Gilles Lenfant writes:
> Okay, I can render a structuredtext in a <dtml-var stx_doc_name
> fmt=structured-text>, but I need to send the content of that structured text
> in mail (plain text).
> Is there a simple way to discard all markup from structuredtext ?
Structured text is plain text that you can directly send by email.
If you send it to a browser, you may need to set the "Content-Type"
header to "text/plain":
<dtml-call "RESPONSE.setHeader('Content-Type','text/plain')>
....
Dieter