Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Display html in plaintext

by arturo (Vicar)
on Oct 09, 2002 at 13:41 UTC ( #203918=note: print w/replies, xml ) Need Help??

in reply to Display html in plaintext

Note that there are command-line tools that you may have available that will do pretty much what you want; no need to whip up a perl script when lynx will do:

lynx --dump <url>

This preserves some of the formatting, and labels the links as well. Lynx' table-savvy descendant, links, also takes --dump as an option, but the output is not as nice.

If not P, what? Q maybe?
"Sidney Morgenbesser"

Replies are listed 'Best First'.
Re: Re: Display html in plaintext
by trs80 (Priest) on Oct 09, 2002 at 14:38 UTC
    w3m is my favorite tool to convert to text and has good support for tables as well, in fact that is why I started using. I needed to send out emails with an HTML and text version of the same inforamtion that was in a table and w3m is working nicely.
    See this node for more information.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://203918]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2023-06-05 11:20 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (24 votes). Check out past polls.