When passing a template with double quotes, creating the compiled template fails with `Uncaught SyntaxError: Unexpected string` example: ``` JavaScript L.Util.template('<img src="{href}" class="{className}" />', { href: 'http://leafletjs.com/docs/images/logo.png', className: 'thumb' }); ``` creates a `str` in compileTemplate like this: ``` JavaScript "<img src="" + o["href"] + "" class="" + o["className"] + "" />" ``` Which obviously needs some escaping... http://jsfiddle.net/jieter/dCHLt/