twilson63 / html2haml

Convert HTML Snippets to Haml
http://html2haml.heroku.com
MIT License
180 stars 82 forks source link

Quotes are not properly escaped #16

Closed rgarg8 closed 10 years ago

rgarg8 commented 11 years ago

This code:

<div class="hello <%= "bye" if @welcome.nil? %>">
</div>

Generates:

%div{:class => "hello #{"bye" if @welcome.nil?}"}

Which will break because the quote is improperly closed.

twilson63 commented 11 years ago

Hello,

I don't know how I can fix this, any suggestions?

Thanks

Tom

emptyflask commented 10 years ago

What's the problem? This works fine, at least with the current version of Haml.