Ich habe eine SQL-Tabelle, die HTML-Formatierung für Text angezeigt enthält.ASP.Net MVC SQL-Formatierung HTML
<strong>What Is EDI ?</strong><p>EDI is a method for communicating electronically with trading partners based upon standards.</p>
Innerhalb meiner MVC-Anwendung gibt es eine index.cshtml Seite unter:
<h2>Index</h2>
<table>
<tr>
<th> @Html.DisplayNameFor(model => model.Body)</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>@Html.DisplayFor(modelItem => item.Body)</td>
</tr>
}
</table>
Das Problem ist, dass der Text ohne HTML-Formatierung als normal erscheint. Kann jemand helfen, das Problem zu beheben, das ich habe?
danke das hat funktioniert :) – TerrorTot38
@ TerrorTot38..sind willkommen. –