diff --git a/templates/metadata-converter.php b/templates/metadata-converter.php
index 0bbb7a6d607162c8c988fa98249dd7817be6cf43..f8b17c114200d5c79d7df16d14c21c41db1880ac 100644
--- a/templates/metadata-converter.php
+++ b/templates/metadata-converter.php
@@ -11,7 +11,7 @@ $this->includeAtTemplateBase('includes/header.php');
 
 <p><?php echo($this->t('{admin:metaconv_xmlmetadata}')); ?></p>
 <p>
-<textarea rows="20" cols="75" name="xmldata"><?php echo htmlspecialchars($this->data['xmldata']); ?></textarea>
+<textarea rows="20" cols="120" name="xmldata"><?php echo htmlspecialchars($this->data['xmldata']); ?></textarea>
 </p>
 <p>
 <input type="submit" value="<?php echo $this->t('metaconv_parse'); ?>" />
@@ -32,7 +32,7 @@ if($output !== NULL) {
 		}
 
 		echo('<h3>' . htmlspecialchars($type) . '</h3>' . "\n");
-		echo('<pre>' . htmlspecialchars($text) . '</pre>' . "\n");
+		echo('<pre class="metadatabox">' . htmlspecialchars($text) . '</pre>' . "\n");
 	}
 }
 
diff --git a/www/admin/metadata-converter.php b/www/admin/metadata-converter.php
index 68d42130adb2b2241cc6f5860292322d3c484f52..b40132f2a8bc821092f0708247cc41f2374ce83e 100644
--- a/www/admin/metadata-converter.php
+++ b/www/admin/metadata-converter.php
@@ -39,8 +39,13 @@ try {
 					continue;
 				}
 
-				$text .= '$metadata[\'' . addslashes($entityId) . '\'] = ' .
-					var_export($entityMetadata, TRUE) . ';' . "\n";
+				/* Remove the entityDescriptor element because it is unused, and only
+				 * makes the output harder to read.
+				 */
+				unset($entityMetadata['entityDescriptor']);
+
+				$text .= var_export($entityId, TRUE) . ' => ' .
+					var_export($entityMetadata, TRUE) . ",\n";
 			}
 
 			$entities = $text;