in reply to Ensuring HTML is "balanced"
I'm not sure if this is what you want, but, using search terms "HTML tags" I found a couple of possibilities: HTML::TagUtil, and HTML::EasyTags. While they may not do exactly what you want, they may provide information about the tags for you to make the desired corrections to your input.
The problem, of couse, is that it's often not possible to know exactly where the tags were intended. For example: <b>Which <i>exact text was supposed to be italics?</b>. Where does the </i> tag go? In more complex text, it is likely that only the original author knows just where the tags should have been placed - if, in fact, s/he even knows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ensuring HTML is "balanced"
by apotheon (Deacon) on Mar 06, 2006 at 22:13 UTC |