Y'know, my own recommended solution -- if someone really insisted that I
process broken files, which I would resist VERY strongly -- would be to
apply a minimal-effort force-it-to-fit solution. Write a very simple parser
which just checks that the raw syntax is roughly correct and forces
structural correctness by either discarding superfluous end-tags or
generating missing ones. Similar  processing for balancing quotes and angle
brackets might also be useful. No attempt to understand what the user's
intent was, just the absolute minimum work needed to force our way past the
mistakes.

The result might not be what the user intended, but that's their fault for
not saying what they meant in the first place.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to