I'm banging my head against the wall on this one and would like to know why when I enclose an HTML attribute, such as an id tag in single quotes: <div id='test'></div>, they are automatically being replaced with double quotes: <div id="test"></div>, when rendered and sent to the client for viewing.
Is there a way to enforce single quotes in attributes?
So far I have tried @Html.Raw("'test'"), @Html.Raw("id='test'"), and etc, and no matter what I do the quotes are still replaced. I see plenty of examples of single quotes being used successfully without automatic conversion, so I'm wondering what's going on and if anyone can provide resolution to this problem
I'm using ASP.Net MVC 5, Bootstrap 3.0, Jquery, and Less, nothing too exotic in terms of javascript libraries, and the standard Razor view.
Thanks for your answers.
testor'test'?