HTML generation API for MS