Prevent DOMDocument invalid tag errors.