My preference is for code like the following -

    my $o = $t->output;
    if (my $h = new HTML::Clean (\$o)) {
        $h->strip();
        $o = ${$h->data()};
    }
    print $o;    # or whatever

Regards,
Chris
-- 
Chris Davies, Manheim Online
Tel. 0113 393-2004  Fax. 0870 444-0482.  Mobile 07778 199069


-----Original Message-----
From: Alex Porras [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 8:38 PM
To: Eric Moore
Cc: [EMAIL PROTECTED]
Subject: Re: [htmltmpl] Piping $template->output to HTML::Clean

On Tue, 19 Feb 2002, Eric Moore wrote:
> I want to send the output from HTML::Template to HTML::Clean.

I think you can do:
        my $output = $template->output;
        $h = new HTML::Clean( \$output );

--Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to