From 4bb4e970de825f09c0b09d5cc3c6073fee77a649 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 12 Jun 2011 23:33:07 -0400 Subject: [PATCH] Fix missing arguments from renderUnescaped --- Mustache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mustache.php b/Mustache.php index 414316f..df52755 100644 --- a/Mustache.php +++ b/Mustache.php @@ -617,7 +617,7 @@ class Mustache { * @return string */ protected function _renderEscaped($tag_name, $leading, $trailing) { - return $leading . htmlentities($this->_renderUnescaped($tag_name), ENT_COMPAT, $this->_charset) . $trailing; + return htmlentities($this->_renderUnescaped($tag_name, $leading, $trailing), ENT_COMPAT, $this->_charset); } /** @@ -888,4 +888,4 @@ class MustacheException extends Exception { // which can't be handled by this Mustache instance. const UNKNOWN_PRAGMA = 4; -} \ No newline at end of file +}