I’ve this helper:
public static class TestHelper
{
public static string Test(this UrlHelper helper)
{
var ret = "/Test?par1=1&par2=2";
return ret;
}
}
I call it from _Layout.cshtml view
<script src="@Url.Test()" type="text/javascript"></script>
And the rendered result is:
<script src="/Test?par1=1&par2=2" type="text/javascript"></script>
But I need:
<script src="/Test?par1=1&par2=2" type="text/javascript"></script>
Why add the “&” charactes ??
I’ve tried to use “MvcString” retun but the result is the same
Thank you for your help!
Change that to