Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Jenda (Abbot)
on May 01, 2006 at 22:42 UTC ( #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
Node Status?
node history
Node Type: note [id://546786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-02-28 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?