Clean up HTML, so that links are rendered nicely.