$leading and $trailing shouldn't be escaped.
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user