Fix — HTML entity rendering across 60 views

Razor's @() expression auto-encodes &, turning — into — 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:
2026-05-23 09:27:45 -04:00
parent f018653c18
commit 64a9c1531b
60 changed files with 155 additions and 155 deletions
@@ -46,19 +46,19 @@
<dd class="col-7">@Model.EntityType</dd>
<dt class="col-5 text-muted">Entity ID</dt>
<dd class="col-7">@(Model.EntityId ?? "&mdash;")</dd>
<dd class="col-7">@Html.Raw(Model.EntityId ?? "&mdash;")</dd>
<dt class="col-5 text-muted">Description</dt>
<dd class="col-7">@(Model.EntityDescription ?? "&mdash;")</dd>
<dd class="col-7">@Html.Raw(Model.EntityDescription ?? "&mdash;")</dd>
<dt class="col-5 text-muted">User</dt>
<dd class="col-7">@Model.UserName</dd>
<dt class="col-5 text-muted">Company</dt>
<dd class="col-7">@(Model.CompanyName ?? (Model.CompanyId?.ToString() ?? "&mdash;"))</dd>
<dd class="col-7">@Html.Raw(Model.CompanyName ?? (Model.CompanyId?.ToString() ?? "&mdash;"))</dd>
<dt class="col-5 text-muted">IP Address</dt>
<dd class="col-7">@(Model.IpAddress ?? "&mdash;")</dd>
<dd class="col-7">@Html.Raw(Model.IpAddress ?? "&mdash;")</dd>
</dl>
</div>
</div>
@@ -95,8 +95,8 @@
var newVal = newData.ValueKind == JsonValueKind.Object && newData.TryGetProperty(key, out var nv) ? nv.ToString() : null;
<tr>
<td class="fw-medium">@key</td>
<td class="text-danger font-monospace">@(oldVal ?? "&mdash;")</td>
<td class="text-success font-monospace">@(newVal ?? "&mdash;")</td>
<td class="text-danger font-monospace">@Html.Raw(oldVal ?? "&mdash;")</td>
<td class="text-success font-monospace">@Html.Raw(newVal ?? "&mdash;")</td>
</tr>
}
}