Search code examples
jqueryhtmlfirefoxjquery-templates

Firefox is encoding client-side template curly braces


I got an aspx code that looks like this

<img src="${image_item_path}" />

On Chrome/IE don't have problem, but Firefox render it like this

<img src="%7Bimage_item_path%7D" />

Note: I'm using the jQuery Template engine


Solution

  • Sorry folks, it's a well-known issue with the template engine I'm using. I'm wrapping the img element into a div rather than a script block.

    This is the answer I was looking for:

    https://github.com/jquery/jquery-tmpl/issues/147

    Thank you all