Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2007 12:07:52 -0700
From:      Bill Campbell <freebsd@celestial.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: what's the easiest way to de-html-ize files?
Message-ID:  <20070514190752.GA11110@ayn.mi.celestial.com>
In-Reply-To: <20070512195437.GA92218@thought.org>
References:  <20070512195437.GA92218@thought.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, May 12, 2007, Gary Kline wrote:
>
>
>	This is for those of us who appreciate ASCII or straight
>	ISO_8859-15 rather than marked up files.  I have slapped together
>	a crude C program that does scotch (or *cleanse*) text of
>	<B></B> and so on.   Still... is there some standalone converter
>	that gets rids of markup more elegantly?   Something where i
>	can say

The ``lynx'' text browser can generate plain text from HTML.

lynx -dump -force_html filename

Bill
--
INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

In Germany they first came for the Communists and I didn't speak up because
I wasn't a Communist.  Then they came for the Jews, and I didn't speak up
because I wasn't a Jew.  Then they came for the trade unionists, and I
didn't speak up because I wasn't a trade unionist.  Then they came for the
Catholics, and I didn't speak up because I was a Protestant.  Then they came
for me -- and by that time no one was left to speak up.
		-- Pastor Martin Niemoller



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20070514190752.GA11110>