diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php
index 56976fa33dc15faaf73e0b98793203b0c6751cf5..7bf446ce14439d85a7105bdb0606f281355abe18 100644
--- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php
+++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php
@@ -1227,7 +1227,7 @@ class GeneralUtility
             if ($val !== '=') {
                 if ($valuemode) {
                     if ($name) {
-                        $attributes[$name] = htmlspecialchars_decode($val);
+                        $attributes[$name] = htmlspecialchars_decode($val, ENT_NOQUOTES);
                         $name = '';
                     }
                 } else {