KSHTMLWriter is a set of classes for generating HTML and XML markup programmatically.

Official KSHTMLWriter repository