reformat html code