Apply a long series of changes to the HTML to make it easier to convert to XML. No content was changed.