format html dialog