Sick of forgetting to close tags when generating tables and HTML documents in a PHP script? This library contains 2 classes:
CTagDocument
CHTMLDocument (an extension of CTagDocument).
These classes track HTML tags as you open and close them; CHTMLDocument is geared towards generation of a complete HTML document, while CTagDocument can be used for
structures like TABLE and LIST. Basic HTML formatting is also done for you. These classes do not buffer their output to memory - they echo() their output to the
browser as they go. Call 'CloseAllTags()' to properly close all open tags, or 'CloseTag()' to close the current tag. See the example below...