Here is my code
Controller
public ActionResult Sites()
{
var viewModel = new ViewModel();
viewModel.currentSite.genComments =HttpUtility.HtmlEncode("Some string that</br>\r\n looks like this<br/>");
return View(viewModel);
}
View:
@Html.EditorFor(v => v.currentSite.gencomments, Model.currentSite.gencomments, "gencomments")
I get an error saying that there are invalid characters in the path.
Any ideas or suggestions
Are you intending for the comments to specify the template name? It looks like you are calling this overload of EditorFor.
Try just
To name the field, you can try this (no guarantees on this one though!):