in reply to Ensuring HTML is "balanced"
With a little more trickery (but only a little) you can take account of stuff like <HR> and <BR> not needing to be closed, that only certain tags are legal immediately inside others (eg <TR> is legal inside <TABLE> but <HR> isn't) and so on.
Even if you ignore all those special cases, you'll have a good solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ensuring HTML is "balanced"
by apotheon (Deacon) on Mar 09, 2006 at 14:34 UTC | |
by DrHyde (Prior) on Mar 10, 2006 at 12:21 UTC |