Преглед на файлове

$leading and $trailing shouldn't be escaped.

Justin Hileman преди 14 години
родител
ревизия
ceb0766f66
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Mustache.php

+ 2 - 1
Mustache.php

@@ -619,7 +619,8 @@ class Mustache {
 	 * @return string
 	 */
 	protected function _renderEscaped($tag_name, $leading, $trailing) {
-		return htmlentities($this->_renderUnescaped($tag_name, $leading, $trailing), ENT_COMPAT, $this->_charset);
+		$rendered = htmlentities($this->_renderUnescaped($tag_name, '', ''), ENT_COMPAT, $this->_charset);
+		return $leading . $rendered . $trailing;
 	}
 
 	/**