Skip to content

broken escape function with variable parameter #868

Closed
@dellamowica

Description

@dellamowica

Hi, consider this code:

{%set value="ht'ml"%}
{%set tutu='html'%}
{{ value|e(tutu) }}

it's expected to output: ht'ml

but it ouputs ht & # 039;ml

writing this: {{ value|e('html') }} renders the expected output.

Then there seems to be an issue with passing strategies with a variable.

cheers.

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