Howdy Zopsters,

I want to catalog some html files but I want to strip the html tags out.
htmlparser does a good job of that, but when I try to acces that from an
external method, I run into trouble.

import htmllib
import formatter

def index(self, html):
    fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file))
    p = htmllib.HTMLParser(fmtr)
    return p.feed(html)
    
Since the DumbWriter uses stdout, this returns None.  When I try to write
to a temporary file, or pipe I get 'bad file descriptor' errors because of
the way external method function I guess.  Any help would really be
appreciated.

All my best,


Jason Spisak
[EMAIL PROTECTED]

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to