A while ago I asked a similar question Ensuring HTML is "balanced" as a result of that I knocked up the trivial HTML::Balance module.
In reply to Re: Clipping text in the middle of an open HTML tag
by skx
in thread Clipping text in the middle of an open HTML tag
by hacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |