what's the easiest way to de-html-ize files?

Bill Campbell freebsd at celestial.com
Mon May 14 19:06:03 UTC 2007


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 at 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


More information about the freebsd-questions mailing list