Quote:
Originally Posted by Starson17
There's always more than one way to skin a kangaroo.
|
A quick comment. If the normal keep and remove tags aren't working well, you may be best off using postprocess_html and soup on a tag by tag basis. The re method is very powerful, but doesn't operate tag by tag, so the option I gave might remove the beginning of an outer div tag only up to the end of an inner tag, and that's not what you want. OTOH, if you know exactly what you want to remove, you can use the re to rip it out by defining start and end of the rip without regard to tag structure.