See the function tabular.web.tabular2html() in the tabular.web module.
tabular.web.tabular2html()
tabular.web
Fast Array Operations
tabular.tab