in reply to Re: Cleaning up HTML tags
in thread Cleaning up HTML tags

Obviously the functionality is very important. But from what I can see, the modules I mentioned in my original post all pretty much do what I need. HTML::Scrubber and HTML::Sanitizer allowing the user to aqdjust his rules on the fly

Don't get me wrong: I like objects, a lot.

It just bugs me when those snappy OO interfaces don't actually contribute expressive power. So, I'm looking for a procedural alternative, that I haven't been able to find on my own.

Why have the overhead of creating and destroying objects to do such a simple thing? Why do I have to type in that extra line of code?

As an analogy, who bothers with the OO interface to Digest::MD5 99% of the time? I for one, am so glad the guy who wrote it lets me get by with md5_hex().

Replies are listed 'Best First'.
Re: Re: Re: Cleaning up HTML tags
by esh (Pilgrim) on Aug 25, 2003 at 05:52 UTC

    Ok, it sounds like we're both on the same page. I also like to gripe about interfaces of various packages when they don't match how I would design them.

    But, sometimes the functionality is so good, that I put up with a lot of (what I consider to be) strangeness in the inteface. Take <name deleted to protect the guilty> for example, which I love and strongly recommend, just because it does a great job of coming up with results I want.

    -- Eric Hammond