primitive html formatter