We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ERB Input:
<div style="<%= "background: red;" %><%= "display: block;" %>"></div>
Output:
div(style: ("background: red;" %><%=), block: %(), erb: %(), display:: %()) { %(">) }
Expected output:
div(style: %(#{"background: red;"}#{"display: block"}))
The text was updated successfully, but these errors were encountered:
The Deface parser is currently not correctly transforming this provided input:
require "deface" html = %(<div style="<%= "background: red;" %> <%= "display: block;" %>"></div>) Deface::Parser.erb_markup!(html) html # => "<div data-erb-style=\"<%= "background: red;" %> <%= \"display: block;\" </erb>\"></div>"
The second set of quotes within an HTML attribute doesn't get escaped.
Sorry, something went wrong.
Support multiple ERB interpolations in HTML attributes (#86)
bafaf17
Resolves #76 and Resolves #77 Additionally adds failing tests for #85
No branches or pull requests
ERB Input:
Output:
Expected output:
The text was updated successfully, but these errors were encountered: