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:
@@ -210,7 +210,7 @@
|
||||
<td class="small fw-semibold">@alert.CompanyName</td>
|
||||
<td class="small">@alert.PlanName</td>
|
||||
<td><span class="badge bg-@statusClass">@alert.Status</span></td>
|
||||
<td class="small">@(alert.EndDate?.ToString("MM/dd/yyyy") ?? "—")</td>
|
||||
<td class="small">@Html.Raw(alert.EndDate?.ToString("MM/dd/yyyy") ?? "—")</td>
|
||||
<td class="small @(alert.DaysUntilExpiry < 0 ? "text-danger" : "text-warning")">@daysText</td>
|
||||
<td>
|
||||
<a asp-controller="SubscriptionManagement" asp-action="Manage"
|
||||
@@ -248,7 +248,7 @@
|
||||
<div class="mobile-card-body">
|
||||
<div class="mobile-card-row">
|
||||
<span class="mobile-card-label">End Date</span>
|
||||
<span class="mobile-card-value">@(alert.EndDate?.ToString("MM/dd/yyyy") ?? "—")</span>
|
||||
<span class="mobile-card-value">@Html.Raw(alert.EndDate?.ToString("MM/dd/yyyy") ?? "—")</span>
|
||||
</div>
|
||||
<div class="mobile-card-row">
|
||||
<span class="mobile-card-label">Days</span>
|
||||
|
||||
Reference in New Issue
Block a user