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

Maybe something in the way your module's working can give someone an idea? What about posting the POD of the module here, to see it it lights a bulb somewhere?
  • Comment on Re^3: RFC: HTML::?Filter ... suggest a name for the beast

Replies are listed 'Best First'.
Re^4: RFC: HTML::?Filter ... suggest a name for the beast
by Jenda (Abbot) on May 01, 2006 at 22:42 UTC

    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);

      Yep, I vote for "Filter()" and "FilterFile()" instead... For the module, what do you think of HTML::Sieve as a name ?