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:
@@ -123,13 +123,13 @@
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
<span class="path-badge text-muted" title="@u.CurrentPath">@(u.CurrentPath ?? "—")</span>
|
||||
<span class="path-badge text-muted" title="@u.CurrentPath">@Html.Raw(u.CurrentPath ?? "—")</span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="mb-1 small text-muted">@secsAgo s ago</div>
|
||||
<div class="last-seen-bar" style="width:@barPct%"></div>
|
||||
</td>
|
||||
<td class="small text-muted">@(u.IpAddress ?? "—")</td>
|
||||
<td class="small text-muted">@Html.Raw(u.IpAddress ?? "—")</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
@@ -154,7 +154,7 @@
|
||||
<div class="mobile-card-body">
|
||||
<div class="mobile-card-row">
|
||||
<span class="mobile-card-label">Company</span>
|
||||
<span class="mobile-card-value">@(u.CompanyName ?? "—")</span>
|
||||
<span class="mobile-card-value">@Html.Raw(u.CompanyName ?? "—")</span>
|
||||
</div>
|
||||
<div class="mobile-card-row">
|
||||
<span class="mobile-card-label">Role</span>
|
||||
@@ -167,7 +167,7 @@
|
||||
</div>
|
||||
<div class="mobile-card-row">
|
||||
<span class="mobile-card-label">Page</span>
|
||||
<span class="mobile-card-value small text-muted" style="font-family:monospace">@(u.CurrentPath ?? "—")</span>
|
||||
<span class="mobile-card-value small text-muted" style="font-family:monospace">@Html.Raw(u.CurrentPath ?? "—")</span>
|
||||
</div>
|
||||
<div class="mobile-card-row">
|
||||
<span class="mobile-card-label">Last Seen</span>
|
||||
|
||||
Reference in New Issue
Block a user