Reformat HTML