diff --git a/core/modules/image/templates/image-crop-summary.html.twig b/core/modules/image/templates/image-crop-summary.html.twig
index fc991b65ef2aaf5e445132b0df34e3b568241340..7abcc0779c697e967c43cca03c643f40c3ec6568 100644
--- a/core/modules/image/templates/image-crop-summary.html.twig
+++ b/core/modules/image/templates/image-crop-summary.html.twig
@@ -18,15 +18,15 @@
  */
 #}
 {% if data.width and data.height -%}
-  {{ data.width|e }}×{{ data.height|e }}
+  {{ data.width }}×{{ data.height }}
 {%- else -%}
   {% if data.width %}
     {% trans %}
-      width {{ data.width|e }}
+      width {{ data.width }}
     {% endtrans %}
   {% elseif data.height %}
     {% trans %}
-      height {{ data.height|e }}
+      height {{ data.height }}
     {% endtrans %}
   {% endif %}
 {%- endif %}
diff --git a/core/modules/image/templates/image-resize-summary.html.twig b/core/modules/image/templates/image-resize-summary.html.twig
index f4084ef518e62a246240aaa5db272bfd832f12c8..71c7ab335be55fca766dd61b7f3064762aa171c5 100644
--- a/core/modules/image/templates/image-resize-summary.html.twig
+++ b/core/modules/image/templates/image-resize-summary.html.twig
@@ -16,15 +16,15 @@
  */
 #}
 {% if data.width and data.height -%}
-  {{ data.width|e }}×{{ data.height|e }}
+  {{ data.width }}×{{ data.height }}
 {%- else -%}
   {% if data.width %}
     {% trans %}
-      width {{ data.width|e }}
+      width {{ data.width }}
     {% endtrans %}
   {% elseif data.height %}
     {% trans %}
-      height {{ data.height|e }}
+      height {{ data.height }}
     {% endtrans %}
   {% endif %}
 {%- endif %}
diff --git a/core/modules/image/templates/image-rotate-summary.html.twig b/core/modules/image/templates/image-rotate-summary.html.twig
index 705a0eb03d3b299eef378c8c5506a7f2566e7122..f837efa1a0d13bca90629f957202afd5b98e92ea 100644
--- a/core/modules/image/templates/image-rotate-summary.html.twig
+++ b/core/modules/image/templates/image-rotate-summary.html.twig
@@ -19,8 +19,9 @@
  */
 #}
 {% if data.random %}
+  {% set degrees = data.degrees|abs %}
   {% trans %}
-    random between -{{ data.degrees|abs }}° and {{ data.degrees|abs }}°
+    random between -{{ degrees }}° and {{ degrees }}°
   {% endtrans %}
 {% else %}
   {{ data.degrees }}°
diff --git a/core/modules/image/templates/image-scale-summary.html.twig b/core/modules/image/templates/image-scale-summary.html.twig
index 32d75cc336fae28d4983f2949fc5a7e2b1c971eb..33d0ee1332a3573cbea6ad398c4507c075f52f0b 100644
--- a/core/modules/image/templates/image-scale-summary.html.twig
+++ b/core/modules/image/templates/image-scale-summary.html.twig
@@ -17,15 +17,15 @@
  */
 #}
 {% if data.width and data.height -%}
-  {{ data.width|e }}×{{ data.height|e }}
+  {{ data.width }}×{{ data.height }}
 {%- else -%}
   {% if data.width %}
     {% trans %}
-      width {{ data.width|e }}
+      width {{ data.width }}
     {% endtrans %}
   {% elseif data.height %}
     {% trans %}
-      height {{ data.height|e }}
+      height {{ data.height }}
     {% endtrans %}
   {% endif %}
 {%- endif %}
diff --git a/core/themes/stable/templates/admin/image-crop-summary.html.twig b/core/themes/stable/templates/admin/image-crop-summary.html.twig
index 6f3b0fcb3e4d55af7ec7b51d9af0b83bffd467bc..e401f24233839a263bd750f3814f3c909683a0ba 100644
--- a/core/themes/stable/templates/admin/image-crop-summary.html.twig
+++ b/core/themes/stable/templates/admin/image-crop-summary.html.twig
@@ -16,15 +16,15 @@
  */
 #}
 {% if data.width and data.height -%}
-  {{ data.width|e }}×{{ data.height|e }}
+  {{ data.width }}×{{ data.height }}
 {%- else -%}
   {% if data.width %}
     {% trans %}
-      width {{ data.width|e }}
+      width {{ data.width }}
     {% endtrans %}
   {% elseif data.height %}
     {% trans %}
-      height {{ data.height|e }}
+      height {{ data.height }}
     {% endtrans %}
   {% endif %}
 {%- endif %}
diff --git a/core/themes/stable/templates/admin/image-resize-summary.html.twig b/core/themes/stable/templates/admin/image-resize-summary.html.twig
index fde09d23ac2c95e0a3e443c3e18be562854b8f6e..dc0ba198fd9683a0d24e77c56f4b01e2186be0ae 100644
--- a/core/themes/stable/templates/admin/image-resize-summary.html.twig
+++ b/core/themes/stable/templates/admin/image-resize-summary.html.twig
@@ -14,15 +14,15 @@
  */
 #}
 {% if data.width and data.height -%}
-  {{ data.width|e }}×{{ data.height|e }}
+  {{ data.width }}×{{ data.height }}
 {%- else -%}
   {% if data.width %}
     {% trans %}
-      width {{ data.width|e }}
+      width {{ data.width }}
     {% endtrans %}
   {% elseif data.height %}
     {% trans %}
-      height {{ data.height|e }}
+      height {{ data.height }}
     {% endtrans %}
   {% endif %}
 {%- endif %}
diff --git a/core/themes/stable/templates/admin/image-rotate-summary.html.twig b/core/themes/stable/templates/admin/image-rotate-summary.html.twig
index 542f2df80dfc4c649d1a2e4f720385a6832d1ad6..c3f446e52147a8e86a806aacbf1ceed8d7efe4d3 100644
--- a/core/themes/stable/templates/admin/image-rotate-summary.html.twig
+++ b/core/themes/stable/templates/admin/image-rotate-summary.html.twig
@@ -17,8 +17,9 @@
  */
 #}
 {% if data.random %}
+  {% set degrees = data.degrees|abs %}
   {% trans %}
-    random between -{{ data.degrees|abs }}° and {{ data.degrees|abs }}°
+    random between -{{ degrees }}° and {{ degrees }}°
   {% endtrans %}
 {% else %}
   {{ data.degrees }}°
diff --git a/core/themes/stable/templates/admin/image-scale-summary.html.twig b/core/themes/stable/templates/admin/image-scale-summary.html.twig
index bf54445a082978d5943ec9947f56485be01e89f2..5b7c6864c54845746827d77d2446ba4efdc80848 100644
--- a/core/themes/stable/templates/admin/image-scale-summary.html.twig
+++ b/core/themes/stable/templates/admin/image-scale-summary.html.twig
@@ -15,15 +15,15 @@
  */
 #}
 {% if data.width and data.height -%}
-  {{ data.width|e }}×{{ data.height|e }}
+  {{ data.width }}×{{ data.height }}
 {%- else -%}
   {% if data.width %}
     {% trans %}
-      width {{ data.width|e }}
+      width {{ data.width }}
     {% endtrans %}
   {% elseif data.height %}
     {% trans %}
-      height {{ data.height|e }}
+      height {{ data.height }}
     {% endtrans %}
   {% endif %}
 {%- endif %}