"NickName" <dadada@rock.comwrites:
Quote:
I have a bunch of HTML files with nasty tag format, see below,
>
bad format example (untidy tags)
] <DIV class="Sect"
]
] ><H3
] align="left"
] ><FONT size="+1" color="#000000"><B>Products...As-Is...Business Line... Information Technology: Monitor, Report, & Respond </H3
] ><P
] align="left"
] ></B</P
] ><TABLE
] border=1 cellspacing=0 cellpadding=2
] ><TR
Quote:
>
know any tool that could tidy it up?
Depends which bit needs tidying up. If you mean the newlines before
the at the end of the tag, then various programs could do it. I'd
probably use perl for it, but anything with reasonably good
search-and-replace could do it. Alternatively, there's various
programs that will automatically reformat HTML code (tinyMCE will do
it, though it obviously isn't the primary use)
If you mean the fact that a <fontelement:
a) is in there at all
b) is never closed
and the attempted <belement has an opening tag inside the <h3>
element and a closing tag inside the <pelement, then you might have
some luck running it through HTML tidy or other code cleanup programs,
but more likely it'll have to be done manually to get it fully sorted
out, depending on how widespread the problems of that sort are.
--
Chris