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
@@ -42,7 +42,7 @@
</div>
<div class="col-md-6">
<label class="text-muted small mb-1">Location</label>
<p class="mb-0">@(Model.Location ?? "&mdash;")</p>
<p class="mb-0">@Html.Raw(Model.Location ?? "&mdash;")</p>
</div>
<div class="col-md-6">
<label class="text-muted small mb-1">Status</label>
@@ -76,15 +76,15 @@
<div class="row g-3">
<div class="col-md-4">
<label class="text-muted small mb-1">Manufacturer</label>
<p class="mb-0">@(Model.Manufacturer ?? "&mdash;")</p>
<p class="mb-0">@Html.Raw(Model.Manufacturer ?? "&mdash;")</p>
</div>
<div class="col-md-4">
<label class="text-muted small mb-1">Model</label>
<p class="mb-0">@(Model.Model ?? "&mdash;")</p>
<p class="mb-0">@Html.Raw(Model.Model ?? "&mdash;")</p>
</div>
<div class="col-md-4">
<label class="text-muted small mb-1">Serial Number</label>
<p class="mb-0">@(Model.SerialNumber ?? "&mdash;")</p>
<p class="mb-0">@Html.Raw(Model.SerialNumber ?? "&mdash;")</p>
</div>
</div>
</div>