Skip to content

Non-string types are handled inconsistently between javascript and html escaping #802

Description

@tomalexander

With the template

{name|h|js}{~n}
{name|j|js}{~n}

and the context

{"name": true}

You get the output

"true"
true

So it seems that html escaping turns non-string types into string, but javascript escaping does not.

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