During discussing a thread in ASP.NET MVC forums, found a bug in Razor V2 in which the auto url resolution(~) will not work if you have an html comment with quotation or apostrophe before the url resolution(~) tag. Here is an quick example,
``` Html
<!-- '" -->
<img src="~/images/submit.png" />
```
See this thread,
[http://forums.asp.net/t/1892597.aspx/1?Using+UrlHelper+Content](http://forums.asp.net/t/1892597.aspx/1?Using+UrlHelper+Content)
Comments: This issue may have been closed by mistake, the duplicate 730 is a different issue and the workaround stated is also not working for me. Could you please review?
``` Html
<!-- '" -->
<img src="~/images/submit.png" />
```
See this thread,
[http://forums.asp.net/t/1892597.aspx/1?Using+UrlHelper+Content](http://forums.asp.net/t/1892597.aspx/1?Using+UrlHelper+Content)
Comments: This issue may have been closed by mistake, the duplicate 730 is a different issue and the workaround stated is also not working for me. Could you please review?