reformat HTML