[BUGFIX] Do not escape output of IconViewHelper 92/47492/4
authorMarkus Klein <markus.klein@typo3.org>
Fri, 1 Apr 2016 17:06:25 +0000 (19:06 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 7 Apr 2016 13:33:47 +0000 (15:33 +0200)
Resolves: #75375
Releases: master
Change-Id: I2da5e7234cd0890cea33c470dab2922a3dc36ee8
Reviewed-on: https://review.typo3.org/47492
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/ViewHelpers/IconViewHelper.php

index dbdaf2e..d55db1a 100644 (file)
@@ -18,8 +18,8 @@ use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Type\Icon\IconState;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
+use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
 
 /**
  * Displays icon identified by icon identifier
@@ -27,6 +27,13 @@ use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 class IconViewHelper extends AbstractViewHelper
 {
     /**
+     * View helper returns HTML, thus we need to disable output escaping
+     *
+     * @var bool
+     */
+    protected $escapeOutput = false;
+
+    /**
      * Prints icon html for $identifier key
      *
      * @param string $identifier