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:
@@ -205,7 +205,7 @@
|
||||
<td>
|
||||
<a asp-controller="Bills" asp-action="Details" asp-route-id="@bill.Id">@bill.BillNumber</a>
|
||||
</td>
|
||||
<td class="text-muted small">@(bill.DueDate?.ToString("MMM d, yyyy") ?? "—")</td>
|
||||
<td class="text-muted small">@Html.Raw(bill.DueDate?.ToString("MMM d, yyyy") ?? "—")</td>
|
||||
<td class="text-end">@bill.BalanceDue.ToString("C")</td>
|
||||
<td class="text-end" style="width:150px">
|
||||
<form asp-action="Apply" method="post" class="d-inline">
|
||||
|
||||
Reference in New Issue
Block a user