Skip to content

fix: handle literal less-than signs in ERB text - #470

Open
efegokdemir wants to merge 2 commits into
Shopify:mainfrom
efegokdemir:efe/fix-non-html-erb-parser-errors
Open

efegokdemir wants to merge 2 commits into
Shopify:mainfrom
efegokdemir:efe/fix-non-html-erb-parser-errors

Conversation

@efegokdemir

Copy link
Copy Markdown

When < followed by whitespace cannot begin an HTML tag, retry parsing it as text while preserving the original source and locations. This handles comparisons in HTML text and shell input redirection without hiding malformed markup. Regression tests cover both cases. Verified with 531 RSpec examples and RuboCop.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant