-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Description
if use autoescape: true, method render of template return String object. (Twig.Template.prototype.render)
if use autoescape: false , method render of template return string literal.
problem in final render:
Twig.Markup = function(content, strategy) {
if(typeof strategy == 'undefined') {
strategy = true;
}
if (typeof content === 'string' && content.length > 0) {
content = new String(content); // <<<<---- it return after template.render() if autoescape: true
content.twig_markup = strategy;
}
return content;
};Metadata
Metadata
Assignees
Labels
No labels