[Zope] How to convert structured text into plain text

Dieter Maurer dieter@handshake.de
Wed, 20 Feb 2002 22:06:44 +0100


Nuno Maltez writes:
 > I know that <dtml-var xxx fmt="structured-text"> converts structured text into
 > HTML, and I know how to call this from a python script/external method.
 > 
 > Now, is there a method somewhere in Zope's classes that return a plain
 > text version of the stx string? With all the special characters and sequences
 > stripped off.
My "CatalogSupport" 

  <http://www.dieter.handshake.de/pyprojects/zope>

contains an HTML parser that strips all tags.

This might be a starting point for you...
Read the caveats, please!


Dieter