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:
@@ -116,7 +116,7 @@
|
||||
{
|
||||
<tr class="@(i.QuantityOnHand == 0 ? "table-danger" : "table-warning")">
|
||||
<td>@i.Name</td>
|
||||
<td>@(i.ColorName ?? "—")</td>
|
||||
<td>@Html.Raw(i.ColorName ?? "—")</td>
|
||||
<td class="text-end fw-semibold text-danger">@i.QuantityOnHand.ToString("N1")</td>
|
||||
<td class="text-end">@i.ReorderPoint.ToString("N1")</td>
|
||||
<td class="text-muted small">@i.UnitOfMeasure</td>
|
||||
|
||||
Reference in New Issue
Block a user