diff --git a/core/modules/image/templates/image-crop-summary.html.twig b/core/modules/image/templates/image-crop-summary.html.twig index fc991b65ef2a..7abcc0779c69 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 f4084ef518e6..71c7ab335be5 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 705a0eb03d3b..f837efa1a0d1 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 32d75cc336fa..33d0ee1332a3 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 6f3b0fcb3e4d..e401f2423383 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 fde09d23ac2c..dc0ba198fd96 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 542f2df80dfc..c3f446e52147 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 bf54445a0829..5b7c6864c548 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 %}