Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: HTML::Scrubber - Perl extension for scrubbing/sanitizing html

by Hero Zzyzzx (Curate)
on Apr 18, 2003 at 14:17 UTC ( #251448=note: print w/replies, xml ) Need Help??


in reply to HTML::Scrubber - Perl extension for scrubbing/sanitizing html

What does this do that HTML::TagFilter doesn't? HTML::Scrubber and HTML::TagFilter appear to attack the exact same problem with nearly the same interface.

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

  • Comment on Re: HTML::Scrubber - Perl extension for scrubbing/sanitizing html

Replies are listed 'Best First'.
Re: Re: HTML::Scrubber - Perl extension for scrubbing/sanitizing html
by PodMaster (Abbot) on Apr 18, 2003 at 14:40 UTC
    Everything ;D

    I wasn't aware of HTML::TagFilter. Like I say in the description, I wasn't satisfied with HTML::Sanitizer, so I wrote HTML::Scrubber.

    HTML::Scrubber and HTML::TagFilter appear to attack the exact same problem with nearly the same interface.
    The same could be said of HTML::Sanitizer.

    Looking at TagFilter's TO DO, I already have tests and do the HTML::Parser level optimization he talks about (he's welcomed to borrow those bits if he can).

    I don't intend to expand HTML::Scrubber beyond the interface you see now (like he does). I like my simple interface.

    HTML::Scrubber is never going to do any rule based translations (like changing all font tags with size=2 to span class=bar, or whatever).

    ++Hero Zzyzzx, it's nice to see others play merlyn ;D


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      Looking at TagFilter's TO DO, I already have tests and do the HTML::Parser level optimization he talks about (he's welcomed to borrow those bits if he can).

      Great, instead of inventing yet another wheel, why not send him the tests and patch implementing those features?

        Depending on the perspective of the viewer, perfectly round wheels can look like a warped eliptical wheels, or a flat sticks, or maybe they aren't even visible to the person.

        In situations like that -- where the wheels that have allready been invented don't look quite right -- there's nothing wrong with hammering out your own, if you see fit.

        I don't think so. That would require that I get too intimate with his sourcecode. I'm just not interested (my wheel is complete). Why don't you do it?


        MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
        I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
        ** The Third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2021-05-17 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (169 votes). Check out past polls.

    Notices?