[BUGFIX] Deactivate EscapeInterceptor for certain ViewHelpers
authorBastian Waidelich <bastian@typo3.org>
Thu, 28 Jul 2011 11:54:35 +0000 (13:54 +0200)
committerBastian Waidelich <bastian@typo3.org>
Thu, 28 Jul 2011 11:54:35 +0000 (13:54 +0200)
This change deactivates automatic escaping for ViewHelpers that rely
on the raw value.

Change-Id: I895a359aad05c6fbac4d476d7d8eb4f07da1acdc
Related: #27678

typo3/sysext/fluid/Classes/ViewHelpers/CountViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/DateViewHelper.php

index 080dd8e..665f041 100644 (file)
 class Tx_Fluid_ViewHelpers_CountViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
 
        /**
+        * @var boolean
+        */
+       protected $escapingInterceptorEnabled = FALSE;
+
+       /**
         * Counts the items of a given property.
         *
         * @param array $subject The array or ObjectStorage to iterated over
index 6eaa2b2..30e5094 100644 (file)
 class Tx_Fluid_ViewHelpers_Format_DateViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
 
        /**
+        * @var boolean
+        */
+       protected $escapingInterceptorEnabled = FALSE;
+
+       /**
         * Render the supplied DateTime object as a formatted date.
         *
         * @param mixed $date either a DateTime object or a string that is accepted by DateTime constructor