convert html to txt file

Hi there,

Is there a good program that somebody can recommend that might be run from the command that converts html to txt?

cheers,

Noah

Power Mac G5 DP, Mac OS X (10.4.8)

Posted on Oct 27, 2006 5:56 PM

Reply
3 replies

Oct 27, 2006 6:39 PM in response to Noah Wallach

More info please. Saving pages as text is as easy as using the "Save As" menu to save as text.

If you want something to save the current browser's page as text, that may be hard because shell cannot interact with browsers, unless you can identify the cache page. If you have a bunch of HTML file that yu want to extract the text from, there are shell commands to do it.

Oct 27, 2006 6:41 PM in response to Noah Wallach

Noah--

Do you mean stripping out the HTML from the command-line? You could try a Perl script from the perlfaq. If you think you'll be doing a lot of it, definitely look into installing HTML::Parser from CPAN.

There are some GUI programs that will do it, too. BBEdit will, as will TextMate. I'm sure there are other, but those are all I could think of off the top of my head.

charlie

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

convert html to txt file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.