asp.net mvc - Does Html.LabelFor or Html.TextBoxFor automatically call Html.Encode? -


Do I still need to call html.ecnode even though I'm just using HTML. Are not using LabelFor and Html.TextBoxFor or similar functions and straightforward text?

If you have HTMLX and HTML in Textbox (MVC2)

  & lt;%: Html.TextBoxFor (x = & gt; x.MyName)%>    

Then no need to call html.encode.

: More details for

Comments