Deal with close tags that are not correctly closed.