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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -