diff --git a/templates/server/variables/variable_row.phtml b/templates/server/variables/variable_row.phtml
deleted file mode 100644
index 9b158a7ca3..0000000000
--- a/templates/server/variables/variable_row.phtml
+++ /dev/null
@@ -1,30 +0,0 @@
-
- |
-
- = \PhpMyAdmin\Util::getIcon('b_edit.png', __('Edit')) ?>
-
-
- = \PhpMyAdmin\Util::getIcon('bd_edit.png', __('Edit')) ?>
-
-
- |
-
-
-
- = \PhpMyAdmin\Util::showMySQLDocu($docLink[1], false, $docLink[2] . '_' . $docLink[0], true)
- , str_replace('_', ' ', htmlspecialchars($name))
- , ''
- ?>
-
-
- = htmlspecialchars(str_replace('_', ' ', $name)); ?>
-
- |
-
-
- = str_replace(',', ',', htmlspecialchars($value)); ?>
-
- = $value; ?>
-
- |
-
diff --git a/templates/server/variables/variable_row.twig b/templates/server/variables/variable_row.twig
new file mode 100644
index 0000000000..710f5d0eef
--- /dev/null
+++ b/templates/server/variables/variable_row.twig
@@ -0,0 +1,29 @@
+
+ |
+ {% if editable %}
+ {{ Util_getIcon('b_edit.png', 'Edit'|trans) }}
+ {% else %}
+
+ {{ Util_getIcon('bd_edit.png', 'Edit'|trans) }}
+
+ {% endif %}
+ |
+
+ {% if doc_link != null %}
+
+ {{ Util_showMySQLDocu(doc_link[1], false, doc_link[2] ~ '_' ~ doc_link[0], true) }}
+ {{ name|e|replace({'_': ' '})|raw }}
+
+
+ {% else %}
+ {{ name|replace({'_': ' '}) }}
+ {% endif %}
+ |
+
+ {% if is_html_formatted == false %}
+ {{ value|e|replace({',': ','})|raw }}
+ {% else %}
+ {{ value }}
+ {% endif %}
+ |
+