Я попробовал regex.replace (inputhtml, @"]+> | & nbsp;", "") .trim (); < /code> Но это не работает на HTML -странице, это может быть только в контроллере. < /p>
Код: Выделить всё
public ActionResult Index()
{
string AuthRole = "1,2,3";
ApplicationUser chkuser = common.CheckIsAuthorize(AuthRole);
if (chkuser != null)
{
var data = db.Page.ToList();
return View(data);
}
else
{
return RedirectToAction("Index", "Home");
}
}
< /code>
Это мое представление: < /p>
foreach (var item in Model)
{
@i
@item.Title
@item.Message
@Html.ActionLink("Edit", "Edit", new { id = item.Id })
i++;
}
Подробнее здесь: https://stackoverflow.com/questions/530 ... ge-c-sharp
Мобильная версия