Skip to content

Normalize attrs using Tag.attributes_escape/1 from phoenix_html #255

@lnr0626

Description

@lnr0626

the :attrs directive has some differences compared to passing attributes to content_tag based functions in phoenix ((e.g. link would convert phx_change to phx-change, and data: [thing: "value"] to data-thing="value"))

Adding a new type handler for html attributes to handle that behavior would address that inconsistency

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions