Skip to content

String object after render #415

@DragorWW

Description

@DragorWW

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions