To reproduce this issue, follow these steps:
1. In a Razor web site, install the latest ASP.NET Web Helpers Library version using NuGet.
2. On a CSHTML page that references JQuery, add the following. (Replace the API key below with your own.)
@Maps.GetBingHtml("Av2RVhcYgg4FaKlj1uvfJIwfLtTkKXjcxhDEIptrMWKGV55chQSrjmEmrhh2dF1K", "Seattle")
3. Request the page in the browser of your choice.
Result: The map fails to load. Examining the page source reveals that literal <text> tags are emitted in the helper's inline JavaScript.
Expected: We should be emitting valid JavaScript.
1. In a Razor web site, install the latest ASP.NET Web Helpers Library version using NuGet.
2. On a CSHTML page that references JQuery, add the following. (Replace the API key below with your own.)
@Maps.GetBingHtml("Av2RVhcYgg4FaKlj1uvfJIwfLtTkKXjcxhDEIptrMWKGV55chQSrjmEmrhh2dF1K", "Seattle")
3. Request the page in the browser of your choice.
Result: The map fails to load. Examining the page source reveals that literal <text> tags are emitted in the helper's inline JavaScript.
Expected: We should be emitting valid JavaScript.