Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dgm opened this issue Nov 16, 2022 · 0 comments
Open

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

dgm opened this issue Nov 16, 2022 · 0 comments

Comments

@dgm
Copy link

dgm commented Nov 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant