Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: RFC: HTML::?Filter ... suggest a name for the beast

by wazoox (Prior)
on May 01, 2006 at 21:25 UTC ( [id://546770]=note: print w/replies, xml ) Need Help??


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 ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://546770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-18 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found