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:
@@ -291,7 +291,7 @@
|
||||
}
|
||||
</td>
|
||||
}
|
||||
<td>@(u.CoatColor ?? "—")</td>
|
||||
<td>@Html.Raw(u.CoatColor ?? "—")</td>
|
||||
<td class="text-end">@u.EstimatedLbs.ToString("N3")</td>
|
||||
<td class="text-end fw-semibold">@u.ActualLbsUsed.ToString("N3")</td>
|
||||
<td class="text-end @(variance > 0 ? "variance-over" : variance < 0 ? "variance-under" : "")">
|
||||
|
||||
Reference in New Issue
Block a user