From 2e90a041fb4ddbbf22c1bdd7773a3893d954bee7 Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 31 Jul 2008 13:52:48 +0000 Subject: [PATCH] fix handling of non-empty
-tags and empty !is", $source, $match);
+    preg_match_all("!]*?>.*?!is", $source, $match);
     $_textarea_blocks = $match[0];
-    $source = preg_replace("!]+>.*?!is",
+    $source = preg_replace("!]*?>.*?!is",
                            '@@@SMARTY:TRIM:TEXTAREA@@@', $source);
 
     // remove all leading spaces, tabs and carriage returns NOT