Clean up HTML errors