Skip to content

Backslash handling #48

@amadanmath

Description

@amadanmath
javascript:
  let foo = "bar\nbaz";

currently erroneously renders as

  let foo = "bar
baz";

I believe the backslash in HTML (or JavaScript) should be passed literally, not interpreted as string escape by Crystal, except inside Crystal interopolation #{...}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions