Skip to content

improper hash conversion when erb file has ampersand in html #92

Open
@dgm

Description

@dgm

The following example is converted wrong:

<h1>improper &  html</h1>

<%- foo(:url => bar) %>
<%= :label => "Save"%>

It converts to incorrect ruby:

%h1 improper   html
- foo(:url = bar)
= :label = Save

If you remove the ampersand in the h1 element, the result handles the hash rockets and quotes correctly. I realize the ampersand is not correct html, but it shouldn't break the conversion like this.

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