From cd65494f7313c1964b681904293f3c5fba55b4f3 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Fri, 22 Aug 2014 18:21:34 +0100
Subject: [PATCH] Issue #2318297 by fietserwin: Rotate effect: do not use html
 entity for 'degree' but its unicode character.

---
 .../image/src/Plugin/ImageEffect/RotateImageEffect.php        | 2 +-
 core/modules/image/templates/image-rotate-summary.html.twig   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php b/core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
index 399501147b78..c8184a33a9bf 100644
--- a/core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
+++ b/core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
@@ -104,7 +104,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
       '#default_value' => $this->configuration['degrees'],
       '#title' => t('Rotation angle'),
       '#description' => t('The number of degrees the image should be rotated. Positive numbers are clockwise, negative are counter-clockwise.'),
-      '#field_suffix' => '&deg;',
+      '#field_suffix' => '°',
       '#required' => TRUE,
     );
     $form['bgcolor'] = array(
diff --git a/core/modules/image/templates/image-rotate-summary.html.twig b/core/modules/image/templates/image-rotate-summary.html.twig
index c3cae9de4099..705a0eb03d3b 100644
--- a/core/modules/image/templates/image-rotate-summary.html.twig
+++ b/core/modules/image/templates/image-rotate-summary.html.twig
@@ -20,8 +20,8 @@
 #}
 {% if data.random %}
   {% trans %}
-    random between -{{ data.degrees|abs }}&deg; and {{ data.degrees|abs }}&deg;
+    random between -{{ data.degrees|abs }}° and {{ data.degrees|abs }}°
   {% endtrans %}
 {% else %}
-  {{ data.degrees }}&deg;
+  {{ data.degrees }}°
 {% endif %}
-- 
GitLab