MVC 3 Razor treating string within javascript as html -
i have javascript function within cshtml file builds table, , adds div on page using jquery.
i made couple of changes recently, , seems visual studio treating below html needs parsed. (error: unterminated string literal)
footer = footer + "</td></tr></tfoot>";
i'm looking understand why happening - worked previously, , there other tags in function not show errors, below.
var footer = "<tfoot><tr><td colspan='7'>";
i can around using code below instead, i'd rather find cause can fix properly.
footer = footer + '@html.raw("</td></tr></tfoot>")';