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

Using less than symbol (<) in HTML causes syntax error. #344

Open
joshuapinter opened this issue Feb 5, 2024 · 0 comments
Open

Using less than symbol (<) in HTML causes syntax error. #344

joshuapinter opened this issue Feb 5, 2024 · 0 comments

Comments

@joshuapinter
Copy link

Using something like this:

<tr>
  <td>< 2 times per year</td>
</tr>

Throws something like the following error when linting:

Cache mode is on
Linting 642 files with 9 linters...
app/views/mymodel/show.html.erb:324:15: expected '/' or tag name (at  )
app/views/mymodel/show.html.erb:324:27: expected '>' after '/' (at  )
app/views/mymodel/show.html.erb:324:32: expected whitespace, '>' or '=' after attribute name (at ?)
app/views/mymodel/show.html.erb:324:32: expected whitespace, '>', attribute name or value (at ?)

The work around was to use &lt; instead of < but I thought I would post here to see what your thoughts were on this and if it's something you want the library to handle?

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