I've found this question and I understand that the HTML5 specifications say开发者_C百科 that. Period.
But I'm creating a MVC3 app that uses Google Charts API (images) and I need to use images with links to a google adress and they have a querystring. Just like this:
http://chart.apis.google.com/chart?chs=440x220&cht=t&chco=EFEFEF&chld=BRJPUS&chd=t:20,30,50&chtm=world
I've tested getting a working chart and change a single ampersand to & and the chart returned a error from Google.
How to fix this?
There's nothing to fix in your generated url. It works just fine and generates an image.
Are you actually referring to & amp; (without the space of course) If thats the case and it causes an error, UrlDecode the querystring as its encoded. UrlDecode: http://msdn.microsoft.com/en-us/library/6196h3wt.aspx
精彩评论