> If HTML::Obliterate were to handle all these corner cases using > regexp's, then HTML::Strip's claims may actually be correct.
Perhaps, I think the goals are slightly different though so you'd never need that much in the way of regexes, plus the memory leak I stumbled across is a pretty bad thing. > It appears the code in the HTML::Obliterate is a very simple couple > of regexp's that won't handle all cases. Then you should submit an rt so the author will be aware of it > After looking at the source, I wouldn't even bother using the module > since you could just use the two simple regexp's. The point is to re-use code though. By way of hyperbole, for example, you have 10,000 places you rip out HTML. Now lets say you find that a slight change in the regexes make them even better. (IE That it will handle the "corner" case you mentioned) If you used the module, you update the module and all 10,000 places magically work. If you did not use the module you have to make sure you update all 10,000 places you use the regex. _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
