olivernn / poirot

mustaches in your rails
http://olivernn.github.com/poirot
108 stars 21 forks source link

Remove left spaces when passing HTML to jQuery 1.9 #29

Closed edrd-f closed 7 years ago

edrd-f commented 11 years ago

Passing mustache generated HTML with left spaces to jQuery results in an error. The proposed change implements a solution based on http://stage.jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring

nathankot commented 11 years ago

Please merge this, also get the same problem on jQuery 1.7.2 (jquery-rails 2.2)