Skip to content

View Parser escaping data even if passed 'raw' as context in setData() #788

Description

@gustavojm

I expected that if setData was called with 'raw' as context the data won't be escaped at all, but replaceSingle is called with $escape=TRUE which ends up using esc(html) to escape the data.
I know that using {! !} will force the parser not to escape the data, but I expected the same result with setData and 'raw' context.
Is this the right behaviour?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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