http://qs321.pair.com?node_id=641221


in reply to Clipping text in the middle of an open HTML tag

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.

Steve
--