Ensure valid HTML on override fields