Prevented `data-template` tags from being removed when metadata is being kept