HTMLToPlain

I noticed an entry in the archive regarding this question, and I am
sorry for having to re-ask it.  I would like to convert from an HTML
stream to a Plain (text) stream using HTMLToPlain.

Here's the code:

>         s_HTML_out      =       HTStreamToChunk(request, &HTML_chunk, -1);
>         s_Text_out      =       HTStreamToChunk(request, &Text_chunk, -1);
>
>         s_HTML_convert  =       HTMLToPlain(request, NULL, WWW_SOURCE, WWW_PLAINTEXT, s_Text_out);
>                                                 /* Not sure what parameters 3&4 do.. */
>
>         s_output                = HTTee(s_HTML_convert,s_HTML_out, NULL);
>
>         if (HTLoadToStream(abs_url, s_output,request)==YES)
>                 {
>                 *html = HTChunk_toCString(HTML_chunk);
>                 *text = HTChunk_toCString(Text_chunk);
>                 }
>

I am able to get the HTML_chunk correctly.  My guess is that HTMLToPlain
is not spitting out the correct info.  My guess (based on what I have
read in the archive) is that I need to set up a presenter.  Could
someone point me in the right direction?

Aaron Schweiger

Received on Saturday, 31 July 1999 21:22:33 UTC