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.
In reply to Re: Empty tags cleaner regex (for pre-validated XHTML)
by GrandFather
in thread Empty tags cleaner regex (for pre-validated XHTML)
by Your Mother
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |