reformat html content