Re: HTML to text

2003-06-30 Thread Simon Wistow
On Sun, Jun 29, 2003 at 08:00:11PM +0100, Ian Malpass said: > I'm trying to write something that converts HTML into nicely formatted > text. I've tried this too. My current solution is # pipe through lynx my ($temp_fh, $temp_name) = tempfile(); print $temp_fh $body; close $temp_fh

Re: HTML to text

2003-06-30 Thread alex
On Sun, 2003-06-29 at 20:00, Ian Malpass wrote: > I'm trying to write something that converts HTML into nicely formatted > text. > > How can I improve it? I haven't really found anything on CPAN to do what I > want (there are "remove HTML tags" scripts and thing, but nothing with the > formatting

Re: HTML to text

2003-06-30 Thread Struan Donald
* at 30/06 10:32 +0200 Mark Overmeer said: > * Ian Malpass ([EMAIL PROTECTED]) [030629 20:59]: > > I'm trying to write something that converts HTML into nicely formatted > > text. > > > $fh->open("lynx -dump -stdin < temp.txt |") > > HTML::FormatText produces a nice result. Although in order

Re: HTML to text

2003-06-30 Thread Mark Overmeer
* Ian Malpass ([EMAIL PROTECTED]) [030629 20:59]: > I'm trying to write something that converts HTML into nicely formatted > text. > $fh->open("lynx -dump -stdin < temp.txt |") HTML::FormatText produces a nice result. -- MarkOv %-] --

HTML to text

2003-06-29 Thread Ian Malpass
I'm trying to write something that converts HTML into nicely formatted text. My current solution: use FileHandle; $text = "Hello World"; $fh = FileHandle->new(">temp.txt") or die ("Unable to write temporary file"); $fh->print($text); $fh->close; $fh->open("lynx -du