in reply to Re^3: RFC: HTML::?Filter ... suggest a name for the beast
in thread RFC: HTML::?Filter ... suggest a name for the beast

There's not a lot to document so I think the synopsis will suffice:

use HTML::JFilter; my $filter = new HTML::JFilter <<'*END*' b i code pre br a: href name font: color size style *END* $filteredHTML = $filter->doSTRING($enteredHTML); $filter->doFILE($inputfile, $outputfile);

I don't like the interface either actually. Maybe the methods should be Filter() and FilterFile(). Or maybe I could provide a functional interface instead or in adition:

my $filter = HTML::JFilter::MakeFilter ($allowed_tags); $filtered = $filter->( $html);

Replies are listed 'Best First'.
Re^5: RFC: HTML::?Filter ... suggest a name for the beast
by wazoox (Prior) on May 02, 2006 at 10:21 UTC
    Yep, I vote for "Filter()" and "FilterFile()" instead... For the module, what do you think of HTML::Sieve as a name ?