fixed error in finding closing tag
diff --git a/system/core/Output.php b/system/core/Output.php
index 06d7a86..7bfb8ce 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -841,7 +841,7 @@
 			$output = substr_replace($output, '', 0, $pos);
 
 			// Remove closing tag and save it for later
-			$pos = strpos($output, '</');
+			$pos = strrpos($output, '</');
 			$closing_tag = substr($output, $pos, strlen($output));
 			$output = substr_replace($output, '', $pos);
 		}