Reformat html code