shushanxingzhe / json-template

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

<img> src being ignored. #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hey fellows, great work but I have a problem!

 -What steps will reproduce the problem?
1. I want to insert a variable into an <img> tag in the "src"
But It's completely ignoring the "src"-part.
If I have the exact same variable in any other part of the IMG-tag it works.
For example id="{User.Picture}", but src="{User.Picture}" outputs 
'src="%7BUser.Picture%7D"'.

Why is src being ignored like this? Can't find any information about this 
elsewhere, so please help.

Thanks in advance!
/Henrik Sedelius

Original issue reported on code.google.com by HSedel...@gmail.com on 29 Sep 2011 at 2:22

GoogleCodeExporter commented 8 years ago
Sorry for the very late response -- I can't really see what may have gone 
wrong.  You might need to escape it properly though:

<img src="{User.Picture|htmltag}" />

I'd need an example to look into it any further (e.g. attach something that can 
be run)

Original comment by andyc...@gmail.com on 15 Nov 2011 at 7:36