Skip to content

Attributes added by stimulus_controller should be escaped #968

Closed
@1ed

Description

@1ed

When I write

<div {{ attributes.defaults(stimulus_controller('my-controller', { params: ['a', 'b'] })) }}>

then params' value should be escaped as html attributes.

Now it renders

data-controller="my-controller live" data-my-controller-params-value="["a","b"]" ...

instead of

data-controller="my-controller live" data-my-controller-params-value="&#x5B;&quot;a&quot;,&quot;b&quot;&#x5D;" ...

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