Explorar el Código

$leading and $trailing shouldn't be escaped.

Justin Hileman hace 14 años
padre
commit
ceb0766f66
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;
 	}
 
 	/**