Add XML encoding header to XML view (make consistent with form view)

This commit is contained in:
bergware
2018-08-13 23:38:00 +02:00
parent 181a30ae9a
commit a906e32263

View File

@@ -96,6 +96,7 @@
]
]
];
$hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaration
// Merge in any default values from the VM template
if ($arrAllTemplates[$strSelectedTemplate] && $arrAllTemplates[$strSelectedTemplate]['overrides']) {
@@ -1122,7 +1123,7 @@
</div>
<div class="xmlview">
<textarea id="addcode" name="xmldesc" placeholder="Copy &amp; Paste Domain XML Configuration Here." autofocus><?= htmlspecialchars($strXML); ?></textarea>
<textarea id="addcode" name="xmldesc" placeholder="Copy &amp; Paste Domain XML Configuration Here." autofocus><?=htmlspecialchars($hdrXML).htmlspecialchars($strXML)?></textarea>
<table>
<tr>