Hi. Have you met KvzHTML? It's a standalone PHP Class for generating HTML.