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 Jenda (Abbot)
on Apr 18, 2003 at 14:58 UTC ( [id://251454]=note: print w/replies, xml ) Need Help??


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

To add to the mess ... I have my own HTML filtering module HTML::JFilter. I considered uploading it to CPAN, but found HTML::TagFilter and wasn't sure I should do so then. The biggest difference of HTML::JFilter and these other two is that the HTML::JFilter is supposed to get the list of tags&attributes to allow as a single, easy to edit string. I need that so that the admins of our system are able to modify the filtering of different fields. (The system is used to distribute job offers to different sites, each site may allow different subset of HTML.)

I wanted to look at the code in HTML::TagFilter to see whether it would be viable to merge it with HTML::JFilter, but did not have time to do that yet.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

  • 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 15:09 UTC
    Not bad. I like the spec idea, and think the HTML::TagFilter dude would like it as well. You could also easily subclass HTML::Scrubber and re-create HTML::JFilter.

    That reminds me, I forgot to add

    marked_sections => 1 attr_encoded => 1
    BTW -- XML-DTDParser-1.7, Not enough arguments for Test::skip at test.pl line 51, near ""You don't have Data::Compare\n")".


    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://251454]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found