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>")'; 


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -