Fix — HTML entity rendering across 60 views
Razor's @() expression auto-encodes &, turning — into &mdash; which rendered as literal text in the browser. Wrapped all such expressions in @Html.Raw() so the em-dash entity is passed through unescaped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,9 +70,9 @@
|
||||
<td>
|
||||
<strong>@vendor.CompanyName</strong>
|
||||
</td>
|
||||
<td>@(vendor.ContactName ?? "—")</td>
|
||||
<td>@(vendor.Phone ?? "—")</td>
|
||||
<td>@(vendor.Email ?? "—")</td>
|
||||
<td>@Html.Raw(vendor.ContactName ?? "—")</td>
|
||||
<td>@Html.Raw(vendor.Phone ?? "—")</td>
|
||||
<td>@Html.Raw(vendor.Email ?? "—")</td>
|
||||
<td>
|
||||
@if (vendor.InventoryItemCount > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user