in reply to Empty tags cleaner regex (for pre-validated XHTML)
So you want to remove empty paragraph elements that provide vertical formating and empty table cells and so on?
If your HTML is clean (passes through HTML::Lint without errors) you may be able to use XML::Twig for the processing. Alternatively HTML::TreeBuilder may give more milage than TokeParser if you are doing a lot of editing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Empty tags cleaner regex (for pre-validated XHTML)
by Your Mother (Archbishop) on Dec 13, 2005 at 18:39 UTC |