alchaplinsky / polymer-rails

Polymer and web components for Ruby on Rails
MIT License
286 stars 80 forks source link

Unescape src attribute one-way and two-way binding #86

Closed thetno closed 7 years ago

thetno commented 7 years ago

Hi,

I was having some issue with polymer-rails and polymer-elements-rails (specifically paper-card) described in https://github.com/PolymerElements/paper-card/issues/17.

paper-card uses src="[[image]]" binding and nokogiri is escaping the brackets into src="%5B%5Bimage%5D%5D". Similar issue exists with paper-icon-button and iron-component-page. This PR un-escape src="%5B%5Bxxx%5D%5D" and src="%7B%7Bxxx%7D%7D" back into respective src="[[xxx]]" and src="{{xxx}}".

Regards, thetno