[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clean html text?



In article <59mjru$qia@news.ysu.edu>,
Adalbert Goertz <be404@yfn.ysu.edu> wrote:
>When I download Text.html files I get all kind of control junk with it.
>Is there a program which would remove these html.characters to make the
>text morre readable?

   Don't download a html file. Within Lynx, hit 'p' to print yourself
a text file as the current page appears. No html stuff should appear.
Alternatively, if you've got a .html file in your account and have
a shell account (your freenet may lack this-- that's your problem),
you can do

lynx -dump fubar.html

   To process a file and remove all formatting codes. Links are
referenced in []s, with a list of all links at the bottom of the file.
To save that off to a file, use your shell's redirection like this

lynx -dump fubar.html > fubar.txt

   If your freenet has disabled the print to disk or the shell
accounts, then you're stuck with converting them manually. Bug your
freenet to get their act together.

Nathan Mates

--
<*> Nathan Mates http://www.visi.com/~nathan/      <*>
# What are the facts? Again and again and again-- what are the _facts_?
# Shun wishful thinking, avoid opinion, care not what the neighbors
# think-- what are the facts, and to how many decimal places?  -R.A. Heinlein