patbenatar / rbexy

A Ruby template language and component framework inspired by JSX and React
MIT License
34 stars 5 forks source link

Attribute value with single quote renders weird #84

Closed patbenatar closed 3 years ago

patbenatar commented 3 years ago

This rbx:

data-confirm="Your optometrist will be notified that you'd like to buy this frame. Are you sure?"

renders like this:

data-confirm="Your optometrist will be notified that youd like to buy this frame. Are you sure?d like to buy this frame. Are you sure?"

I can fix it by removing the single quote or replacing it with