Cleanup the HTML before parsing it.