Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Jenda (Abbot)
on May 01, 2006 at 22:42 UTC ( [id://546786]=note: print w/replies, xml ) Need Help??


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 ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-19 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found