format html template field