Cleanup of HTML errors