Our changes
[civicrm-core.git] / CRM / Utils / Token.php
index 9afa2e486fdfe24c9a6291dd275baf07a885a7da..75034a36d8a8e48f86867c7d3303f7f8155eb1c2 100644 (file)
@@ -683,7 +683,7 @@ class CRM_Utils_Token {
       $str
     );
 
-    $str = preg_replace('/\\\\|\{(\s*)?\}/', ' ', $str);
+    //$str = preg_replace('/\\\\|\{(\s*)?\}/', ' ', $str); //WHY you do this?
     return $str;
   }
 
@@ -873,7 +873,7 @@ class CRM_Utils_Token {
    * @param $str ref to the string that will be scanned and modified
    */
   public static function unescapeTokens(&$str) {
-    $str = preg_replace('/\\\\|\{(\{\w+\.\w+\})\}/', '\\1', $str);
+    //$str = preg_replace('/\\\\|\{(\{\w+\.\w+\})\}/', '\\1', $str);
   }
 
   /**