Reformat html output