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:
@@ -561,7 +561,7 @@
|
||||
<tr onclick="window.location='@Url.Action("Details", "Maintenance", new { id = item.Id })'"
|
||||
style="cursor: pointer;">
|
||||
<td>
|
||||
<strong>@(item.Equipment?.EquipmentName ?? "—")</strong>
|
||||
<strong>@Html.Raw(item.Equipment?.EquipmentName ?? "—")</strong>
|
||||
@if (!string.IsNullOrEmpty(item.Equipment?.Location))
|
||||
{
|
||||
<br /><small class="text-muted"><i class="bi bi-geo-alt me-1"></i>@item.Equipment.Location</small>
|
||||
|
||||
Reference in New Issue
Block a user