From 64a9c1531b6f2033ade062f454df56fbb5f433e5 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Sat, 23 May 2026 09:27:45 -0400 Subject: [PATCH] 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 --- .../Views/Accounts/YearEndClose.cshtml | 2 +- .../Views/AiUsageReport/Index.cshtml | 8 ++++---- .../Views/AuditLog/Details.cshtml | 12 ++++++------ src/PowderCoating.Web/Views/BannedIps/Index.cshtml | 2 +- src/PowderCoating.Web/Views/Bills/Index.cshtml | 2 +- .../Views/Companies/Details.cshtml | 14 +++++++------- .../Views/CreditMemos/Details.cshtml | 2 +- .../Views/CreditMemos/Index.cshtml | 2 +- src/PowderCoating.Web/Views/Customers/Index.cshtml | 2 +- src/PowderCoating.Web/Views/Dashboard/Index.cshtml | 4 ++-- src/PowderCoating.Web/Views/DataPurge/Index.cshtml | 4 ++-- .../Views/EmailBroadcast/Preview.cshtml | 2 +- .../Views/EmailBroadcast/SelectCompanies.cshtml | 4 ++-- .../Views/Equipment/Delete.cshtml | 8 ++++---- .../Views/Equipment/Details.cshtml | 6 +++--- .../Views/GiftCertificates/BulkResult.cshtml | 2 +- .../Views/Inventory/Details.cshtml | 6 +++--- .../Views/Inventory/Ledger.cshtml | 2 +- .../Views/Inventory/PrintBin.cshtml | 2 +- .../Views/Inventory/SamplePanels.cshtml | 14 +++++++------- .../Views/Invoices/Details.cshtml | 12 ++++++------ src/PowderCoating.Web/Views/Invoices/Index.cshtml | 2 +- .../Views/Invoices/OnlinePayments.cshtml | 4 ++-- src/PowderCoating.Web/Views/Jobs/WorkOrder.cshtml | 8 ++++---- .../Views/JobsPriority/Index.cshtml | 2 +- .../Views/JournalEntries/Details.cshtml | 2 +- .../Views/OnboardingProgress/Index.cshtml | 8 ++++---- .../Views/PlatformNotifications/Details.cshtml | 2 +- .../Views/PlatformSubscription/Index.cshtml | 4 ++-- .../Views/PowderInsights/Index.cshtml | 4 ++-- .../Views/PowderInsights/_JobPowderSummary.cshtml | 6 +++--- .../Views/PricingTiers/Index.cshtml | 2 +- .../Views/PurchaseOrders/Details.cshtml | 2 +- .../Views/PurchaseOrders/Index.cshtml | 2 +- src/PowderCoating.Web/Views/Reports/ApAging.cshtml | 12 ++++++------ src/PowderCoating.Web/Views/Reports/ArAging.cshtml | 12 ++++++------ .../Views/Reports/CustomerRetention.cshtml | 6 +++--- src/PowderCoating.Web/Views/Reports/Index.cshtml | 12 ++++++------ .../Views/Reports/InventoryTurnover.cshtml | 2 +- .../Views/Reports/InvoiceAgingDetail.cshtml | 4 ++-- .../Views/Reports/OperationsReport.cshtml | 2 +- .../Views/Reports/PowderConsumption.cshtml | 4 ++-- .../Views/Reports/PowderUsage.cshtml | 4 ++-- .../Views/Reports/ProfitAndLoss.cshtml | 14 +++++++------- .../Views/Reports/SalesAndIncome.cshtml | 6 +++--- .../Views/Reports/SalesByCustomer.cshtml | 2 +- .../Views/Reports/SalesTax.cshtml | 6 +++--- .../Views/Reports/TaxReporting1099.cshtml | 2 +- src/PowderCoating.Web/Views/Revenue/Index.cshtml | 4 ++-- .../Views/StripeEvents/Details.cshtml | 4 ++-- .../Views/StripeEvents/Index.cshtml | 6 +++--- .../Views/SubscriptionManagement/Manage.cshtml | 4 ++-- .../Views/SystemInfo/Index.cshtml | 2 +- .../Views/SystemLogs/Index.cshtml | 10 +++++----- src/PowderCoating.Web/Views/TaxRates/Index.cshtml | 4 ++-- .../Views/UsageQuota/Index.cshtml | 10 +++++----- .../Views/UserActivity/Online.cshtml | 8 ++++---- .../Views/VendorCredits/Details.cshtml | 2 +- .../Views/VendorCredits/Index.cshtml | 2 +- src/PowderCoating.Web/Views/Vendors/Index.cshtml | 6 +++--- 60 files changed, 155 insertions(+), 155 deletions(-) diff --git a/src/PowderCoating.Web/Views/Accounts/YearEndClose.cshtml b/src/PowderCoating.Web/Views/Accounts/YearEndClose.cshtml index 9bbf967..3cc38c5 100644 --- a/src/PowderCoating.Web/Views/Accounts/YearEndClose.cshtml +++ b/src/PowderCoating.Web/Views/Accounts/YearEndClose.cshtml @@ -99,7 +99,7 @@ @c.ClosedYear @c.ClosedAt.ToLocalTime().ToString("MM/dd/yyyy h:mm tt") - @(c.ClosedBy ?? "—") + @Html.Raw(c.ClosedBy ?? "—") @if (c.JournalEntry != null) { diff --git a/src/PowderCoating.Web/Views/AiUsageReport/Index.cshtml b/src/PowderCoating.Web/Views/AiUsageReport/Index.cshtml index a110afe..9dc2553 100644 --- a/src/PowderCoating.Web/Views/AiUsageReport/Index.cshtml +++ b/src/PowderCoating.Web/Views/AiUsageReport/Index.cshtml @@ -207,16 +207,16 @@ - @(row.Today > 0 ? row.Today.ToString("N0") : "—") + @Html.Raw(row.Today > 0 ? row.Today.ToString("N0") : "—") - @(row.Last7Days > 0 ? row.Last7Days.ToString("N0") : "—") + @Html.Raw(row.Last7Days > 0 ? row.Last7Days.ToString("N0") : "—") - @(row.Last30Days > 0 ? row.Last30Days.ToString("N0") : "—") + @Html.Raw(row.Last30Days > 0 ? row.Last30Days.ToString("N0") : "—") - @(row.AllTime > 0 ? row.AllTime.ToString("N0") : "—") + @Html.Raw(row.AllTime > 0 ? row.AllTime.ToString("N0") : "—") @if (row.PhotoCount > 0) diff --git a/src/PowderCoating.Web/Views/AuditLog/Details.cshtml b/src/PowderCoating.Web/Views/AuditLog/Details.cshtml index d1ab1e2..21ae629 100644 --- a/src/PowderCoating.Web/Views/AuditLog/Details.cshtml +++ b/src/PowderCoating.Web/Views/AuditLog/Details.cshtml @@ -46,19 +46,19 @@
@Model.EntityType
Entity ID
-
@(Model.EntityId ?? "—")
+
@Html.Raw(Model.EntityId ?? "—")
Description
-
@(Model.EntityDescription ?? "—")
+
@Html.Raw(Model.EntityDescription ?? "—")
User
@Model.UserName
Company
-
@(Model.CompanyName ?? (Model.CompanyId?.ToString() ?? "—"))
+
@Html.Raw(Model.CompanyName ?? (Model.CompanyId?.ToString() ?? "—"))
IP Address
-
@(Model.IpAddress ?? "—")
+
@Html.Raw(Model.IpAddress ?? "—")
@@ -95,8 +95,8 @@ var newVal = newData.ValueKind == JsonValueKind.Object && newData.TryGetProperty(key, out var nv) ? nv.ToString() : null; @key - @(oldVal ?? "—") - @(newVal ?? "—") + @Html.Raw(oldVal ?? "—") + @Html.Raw(newVal ?? "—") } } diff --git a/src/PowderCoating.Web/Views/BannedIps/Index.cshtml b/src/PowderCoating.Web/Views/BannedIps/Index.cshtml index e8f5a20..fbbacb5 100644 --- a/src/PowderCoating.Web/Views/BannedIps/Index.cshtml +++ b/src/PowderCoating.Web/Views/BannedIps/Index.cshtml @@ -248,7 +248,7 @@ { @ban.IpAddress - @(ban.Reason ?? "—") + @Html.Raw(ban.Reason ?? "—") @ban.BannedAt.ToString("MMM dd, yyyy") @if (!ban.IsActive) diff --git a/src/PowderCoating.Web/Views/Bills/Index.cshtml b/src/PowderCoating.Web/Views/Bills/Index.cshtml index dd6518b..46e0d02 100644 --- a/src/PowderCoating.Web/Views/Bills/Index.cshtml +++ b/src/PowderCoating.Web/Views/Bills/Index.cshtml @@ -162,7 +162,7 @@ @entry.StatusLabel @entry.Total.ToString("C") - @(entry.EntryType == "Bill" ? entry.BalanceDue.ToString("C") : "—") + @Html.Raw(entry.EntryType == "Bill" ? entry.BalanceDue.ToString("C") : "—") @if (entry.EntryType == "Bill") diff --git a/src/PowderCoating.Web/Views/Companies/Details.cshtml b/src/PowderCoating.Web/Views/Companies/Details.cshtml index 81bdbdb..3c79b60 100644 --- a/src/PowderCoating.Web/Views/Companies/Details.cshtml +++ b/src/PowderCoating.Web/Views/Companies/Details.cshtml @@ -148,7 +148,7 @@
- + @@ -174,7 +174,7 @@
Company Name@Model.CompanyName
Code@(Model.CompanyCode ?? "—")
Code@Html.Raw(Model.CompanyCode ?? "—")
Status@(Model.IsActive ? "Active" : "Inactive")
Time Zone@(Model.TimeZone ?? "America/New_York")
Created@Model.CreatedAt.ToString("MMM d, yyyy h:mm tt")
- +
Contact Name@Model.PrimaryContactName
Email@Model.PrimaryContactEmail
Phone@(Model.Phone ?? "—")
Phone@Html.Raw(Model.Phone ?? "—")
@@ -283,7 +283,7 @@ } else { N/A } - @(user.Department ?? "—") + @Html.Raw(user.Department ?? "—") @(user.IsActive ? "Active" : "Inactive") @@ -527,20 +527,20 @@ @{ var firstActivity = onboarding.FirstJobCreatedAt ?? onboarding.FirstQuoteCreatedAt; } - @(firstActivity.HasValue ? firstActivity.Value.ToString("MMM d, yyyy") : "—") + @Html.Raw(firstActivity.HasValue ? firstActivity.Value.ToString("MMM d, yyyy") : "—") First Invoice - @(onboarding.FirstInvoiceCreatedAt.HasValue ? onboarding.FirstInvoiceCreatedAt.Value.ToString("MMM d, yyyy") : "—") + @Html.Raw(onboarding.FirstInvoiceCreatedAt.HasValue ? onboarding.FirstInvoiceCreatedAt.Value.ToString("MMM d, yyyy") : "—") Workflow Completed - @(onboarding.FirstWorkflowCompletedAt.HasValue ? onboarding.FirstWorkflowCompletedAt.Value.ToString("MMM d, yyyy") : "—") + @Html.Raw(onboarding.FirstWorkflowCompletedAt.HasValue ? onboarding.FirstWorkflowCompletedAt.Value.ToString("MMM d, yyyy") : "—") Widget Dismissed - @(onboarding.GuidedActivationDismissedAt.HasValue ? onboarding.GuidedActivationDismissedAt.Value.ToString("MMM d, yyyy") : "—") + @Html.Raw(onboarding.GuidedActivationDismissedAt.HasValue ? onboarding.GuidedActivationDismissedAt.Value.ToString("MMM d, yyyy") : "—") diff --git a/src/PowderCoating.Web/Views/CreditMemos/Details.cshtml b/src/PowderCoating.Web/Views/CreditMemos/Details.cshtml index d2c60cc..66bf5a5 100644 --- a/src/PowderCoating.Web/Views/CreditMemos/Details.cshtml +++ b/src/PowderCoating.Web/Views/CreditMemos/Details.cshtml @@ -181,7 +181,7 @@ @a.AppliedDate.ToLocalTime().ToString("MM/dd/yyyy") @a.AmountApplied.ToString("C") - @(a.AppliedBy?.FullName ?? "—") + @Html.Raw(a.AppliedBy?.FullName ?? "—") } diff --git a/src/PowderCoating.Web/Views/CreditMemos/Index.cshtml b/src/PowderCoating.Web/Views/CreditMemos/Index.cshtml index 98a7f2b..667e786 100644 --- a/src/PowderCoating.Web/Views/CreditMemos/Index.cshtml +++ b/src/PowderCoating.Web/Views/CreditMemos/Index.cshtml @@ -204,7 +204,7 @@ else @m.IssueDate.ToLocalTime().ToString("MM/dd/yyyy") - @(m.ExpiryDate.HasValue ? m.ExpiryDate.Value.ToLocalTime().ToString("MM/dd/yyyy") : "—") + @Html.Raw(m.ExpiryDate.HasValue ? m.ExpiryDate.Value.ToLocalTime().ToString("MM/dd/yyyy") : "—") @if (expired) { (Expired) } diff --git a/src/PowderCoating.Web/Views/Customers/Index.cshtml b/src/PowderCoating.Web/Views/Customers/Index.cshtml index 109f6c5..d13c682 100644 --- a/src/PowderCoating.Web/Views/Customers/Index.cshtml +++ b/src/PowderCoating.Web/Views/Customers/Index.cshtml @@ -224,7 +224,7 @@ }
Phone - @(customer.Phone ?? "—") + @Html.Raw(customer.Phone ?? "—")
Type diff --git a/src/PowderCoating.Web/Views/Dashboard/Index.cshtml b/src/PowderCoating.Web/Views/Dashboard/Index.cshtml index f9a19d4..39d75ab 100644 --- a/src/PowderCoating.Web/Views/Dashboard/Index.cshtml +++ b/src/PowderCoating.Web/Views/Dashboard/Index.cshtml @@ -563,7 +563,7 @@ Vendor Total @vendorGroup.TotalLbsNeeded.ToString("N2") lbs - @(vendorGroup.TotalEstCost > 0 ? vendorGroup.TotalEstCost.ToString("C") : "—") + @Html.Raw(vendorGroup.TotalEstCost > 0 ? vendorGroup.TotalEstCost.ToString("C") : "—") @@ -680,7 +680,7 @@ Vendor Total @vendorGroup.TotalLbsNeeded.ToString("N2") lbs - @(vendorGroup.TotalEstCost > 0 ? vendorGroup.TotalEstCost.ToString("C") : "—") + @Html.Raw(vendorGroup.TotalEstCost > 0 ? vendorGroup.TotalEstCost.ToString("C") : "—") diff --git a/src/PowderCoating.Web/Views/DataPurge/Index.cshtml b/src/PowderCoating.Web/Views/DataPurge/Index.cshtml index e77fc5c..9b017f3 100644 --- a/src/PowderCoating.Web/Views/DataPurge/Index.cshtml +++ b/src/PowderCoating.Web/Views/DataPurge/Index.cshtml @@ -139,7 +139,7 @@ else { } - @(s.OldestDeletion.HasValue ? s.OldestDeletion.Value.ToString("MM/dd/yyyy") : "—") + @Html.Raw(s.OldestDeletion.HasValue ? s.OldestDeletion.Value.ToString("MM/dd/yyyy") : "—")
@s.Label
- Oldest: @(s.OldestDeletion.HasValue ? s.OldestDeletion.Value.ToString("MM/dd/yyyy") : "—") + Oldest: @Html.Raw(s.OldestDeletion.HasValue ? s.OldestDeletion.Value.ToString("MM/dd/yyyy") : "—")
diff --git a/src/PowderCoating.Web/Views/EmailBroadcast/Preview.cshtml b/src/PowderCoating.Web/Views/EmailBroadcast/Preview.cshtml index 5611e23..e62f82b 100644 --- a/src/PowderCoating.Web/Views/EmailBroadcast/Preview.cshtml +++ b/src/PowderCoating.Web/Views/EmailBroadcast/Preview.cshtml @@ -78,7 +78,7 @@
@(string.IsNullOrWhiteSpace(row.RecipientEmail) ? "No primary contact email configured" : row.RecipientEmail)
-
@(string.IsNullOrWhiteSpace(row.CompanyAdminName) ? "—" : row.CompanyAdminName)
+
@Html.Raw(string.IsNullOrWhiteSpace(row.CompanyAdminName) ? "—" : row.CompanyAdminName)
@if (!string.IsNullOrWhiteSpace(row.CompanyAdminEmail)) {
@row.CompanyAdminEmail
diff --git a/src/PowderCoating.Web/Views/EmailBroadcast/SelectCompanies.cshtml b/src/PowderCoating.Web/Views/EmailBroadcast/SelectCompanies.cshtml index 5e3d26f..35c9374 100644 --- a/src/PowderCoating.Web/Views/EmailBroadcast/SelectCompanies.cshtml +++ b/src/PowderCoating.Web/Views/EmailBroadcast/SelectCompanies.cshtml @@ -75,7 +75,7 @@
@company.CompanyName
#@company.CompanyId
- @(string.IsNullOrWhiteSpace(company.PrimaryContactName) ? "—" : company.PrimaryContactName) + @Html.Raw(string.IsNullOrWhiteSpace(company.PrimaryContactName) ? "—" : company.PrimaryContactName) @if (string.IsNullOrWhiteSpace(company.PrimaryContactEmail)) { @@ -87,7 +87,7 @@ } -
@(string.IsNullOrWhiteSpace(company.CompanyAdminName) ? "—" : company.CompanyAdminName)
+
@Html.Raw(string.IsNullOrWhiteSpace(company.CompanyAdminName) ? "—" : company.CompanyAdminName)
@if (!string.IsNullOrWhiteSpace(company.CompanyAdminEmail)) {
@company.CompanyAdminEmail
diff --git a/src/PowderCoating.Web/Views/Equipment/Delete.cshtml b/src/PowderCoating.Web/Views/Equipment/Delete.cshtml index a5a4d89..f3c4403 100644 --- a/src/PowderCoating.Web/Views/Equipment/Delete.cshtml +++ b/src/PowderCoating.Web/Views/Equipment/Delete.cshtml @@ -42,7 +42,7 @@
-

@(Model.Location ?? "—")

+

@Html.Raw(Model.Location ?? "—")

@@ -76,15 +76,15 @@
-

@(Model.Manufacturer ?? "—")

+

@Html.Raw(Model.Manufacturer ?? "—")

-

@(Model.Model ?? "—")

+

@Html.Raw(Model.Model ?? "—")

-

@(Model.SerialNumber ?? "—")

+

@Html.Raw(Model.SerialNumber ?? "—")

diff --git a/src/PowderCoating.Web/Views/Equipment/Details.cshtml b/src/PowderCoating.Web/Views/Equipment/Details.cshtml index eae7c9b..b5b0de5 100644 --- a/src/PowderCoating.Web/Views/Equipment/Details.cshtml +++ b/src/PowderCoating.Web/Views/Equipment/Details.cshtml @@ -94,15 +94,15 @@
-

@(Model.Manufacturer ?? "—")

+

@Html.Raw(Model.Manufacturer ?? "—")

-

@(Model.Model ?? "—")

+

@Html.Raw(Model.Model ?? "—")

-

@(Model.SerialNumber ?? "—")

+

@Html.Raw(Model.SerialNumber ?? "—")

diff --git a/src/PowderCoating.Web/Views/GiftCertificates/BulkResult.cshtml b/src/PowderCoating.Web/Views/GiftCertificates/BulkResult.cshtml index b3a6087..2ff261f 100644 --- a/src/PowderCoating.Web/Views/GiftCertificates/BulkResult.cshtml +++ b/src/PowderCoating.Web/Views/GiftCertificates/BulkResult.cshtml @@ -88,7 +88,7 @@ @cert.OriginalAmount.ToString("C") @cert.IssueDate.ToLocalTime().ToString("MMM d, yyyy") - @(cert.ExpiryDate.HasValue + @Html.Raw(cert.ExpiryDate.HasValue ? cert.ExpiryDate.Value.ToLocalTime().ToString("MMM d, yyyy") : "—") diff --git a/src/PowderCoating.Web/Views/Inventory/Details.cshtml b/src/PowderCoating.Web/Views/Inventory/Details.cshtml index 8d6a116..8145695 100644 --- a/src/PowderCoating.Web/Views/Inventory/Details.cshtml +++ b/src/PowderCoating.Web/Views/Inventory/Details.cshtml @@ -298,14 +298,14 @@ {
-

@(Model.InventoryAccountName ?? "—")

+

@Html.Raw(Model.InventoryAccountName ?? "—")

} @if (Model.CogsAccountId.HasValue) {
-

@(Model.CogsAccountName ?? "—")

+

@Html.Raw(Model.CogsAccountName ?? "—")

} @@ -380,7 +380,7 @@
-

@(Model.Location ?? "—")

+

@Html.Raw(Model.Location ?? "—")

diff --git a/src/PowderCoating.Web/Views/Inventory/Ledger.cshtml b/src/PowderCoating.Web/Views/Inventory/Ledger.cshtml index 4987e31..d8c6919 100644 --- a/src/PowderCoating.Web/Views/Inventory/Ledger.cshtml +++ b/src/PowderCoating.Web/Views/Inventory/Ledger.cshtml @@ -291,7 +291,7 @@ } } - @(u.CoatColor ?? "—") + @Html.Raw(u.CoatColor ?? "—") @u.EstimatedLbs.ToString("N3") @u.ActualLbsUsed.ToString("N3") diff --git a/src/PowderCoating.Web/Views/Inventory/PrintBin.cshtml b/src/PowderCoating.Web/Views/Inventory/PrintBin.cshtml index 335ded0..be46b48 100644 --- a/src/PowderCoating.Web/Views/Inventory/PrintBin.cshtml +++ b/src/PowderCoating.Web/Views/Inventory/PrintBin.cshtml @@ -81,7 +81,7 @@ else @row @item.Name - @(item.ColorName ?? "—") + @Html.Raw(item.ColorName ?? "—") @item.SKU } diff --git a/src/PowderCoating.Web/Views/Inventory/SamplePanels.cshtml b/src/PowderCoating.Web/Views/Inventory/SamplePanels.cshtml index 3ecd0f8..117000d 100644 --- a/src/PowderCoating.Web/Views/Inventory/SamplePanels.cshtml +++ b/src/PowderCoating.Web/Views/Inventory/SamplePanels.cshtml @@ -244,9 +244,9 @@
@item.Name
} - @(item.Manufacturer ?? "—") - @(item.ManufacturerPartNumber ?? "—") - @(item.Finish ?? "—") + @Html.Raw(item.Manufacturer ?? "—") + @Html.Raw(item.ManufacturerPartNumber ?? "—") + @Html.Raw(item.Finish ?? "—") @if (item.QuantityOnHand > 0) { @@ -399,9 +399,9 @@
@item.Name
} - @(item.Manufacturer ?? "—") - @(item.ManufacturerPartNumber ?? "—") - @(item.Finish ?? "—") + @Html.Raw(item.Manufacturer ?? "—") + @Html.Raw(item.ManufacturerPartNumber ?? "—") + @Html.Raw(item.Finish ?? "—")
diff --git a/src/PowderCoating.Web/Views/StripeEvents/Index.cshtml b/src/PowderCoating.Web/Views/StripeEvents/Index.cshtml index db38e71..6c0f398 100644 --- a/src/PowderCoating.Web/Views/StripeEvents/Index.cshtml +++ b/src/PowderCoating.Web/Views/StripeEvents/Index.cshtml @@ -145,12 +145,12 @@ @evt.EventType - @(evt.CompanyId.HasValue ? $"#{evt.CompanyId}" : "—") + @Html.Raw(evt.CompanyId.HasValue ? $"#{evt.CompanyId}" : "—") @evt.Status - @(evt.ProcessedAt.HasValue ? evt.ProcessedAt.Value.ToString("HH:mm:ss") : "—") + @Html.Raw(evt.ProcessedAt.HasValue ? evt.ProcessedAt.Value.ToString("HH:mm:ss") : "—") View @@ -191,7 +191,7 @@
Company - @(evt.CompanyId.HasValue ? $"#{evt.CompanyId}" : "—") + @Html.Raw(evt.CompanyId.HasValue ? $"#{evt.CompanyId}" : "—")
Event ID diff --git a/src/PowderCoating.Web/Views/SubscriptionManagement/Manage.cshtml b/src/PowderCoating.Web/Views/SubscriptionManagement/Manage.cshtml index 652fdb5..b885df8 100644 --- a/src/PowderCoating.Web/Views/SubscriptionManagement/Manage.cshtml +++ b/src/PowderCoating.Web/Views/SubscriptionManagement/Manage.cshtml @@ -66,9 +66,9 @@
Users
@ViewBag.UserCount
Stripe Customer
-
@(Model.StripeCustomerId ?? "—")
+
@Html.Raw(Model.StripeCustomerId ?? "—")
Stripe Sub
-
@(Model.StripeSubscriptionId ?? "—")
+
@Html.Raw(Model.StripeSubscriptionId ?? "—")
diff --git a/src/PowderCoating.Web/Views/SystemInfo/Index.cshtml b/src/PowderCoating.Web/Views/SystemInfo/Index.cshtml index 0a60849..2255d2a 100644 --- a/src/PowderCoating.Web/Views/SystemInfo/Index.cshtml +++ b/src/PowderCoating.Web/Views/SystemInfo/Index.cshtml @@ -97,7 +97,7 @@ Last Migration - @(Model.LastAppliedMigration ?? "—") + @Html.Raw(Model.LastAppliedMigration ?? "—") Last Seed Run diff --git a/src/PowderCoating.Web/Views/SystemLogs/Index.cshtml b/src/PowderCoating.Web/Views/SystemLogs/Index.cshtml index 66b4c9c..a27fbf2 100644 --- a/src/PowderCoating.Web/Views/SystemLogs/Index.cshtml +++ b/src/PowderCoating.Web/Views/SystemLogs/Index.cshtml @@ -153,7 +153,7 @@ @row.Timestamp.Tz(ViewBag.CompanyTimeZone as string).ToString("MM/dd HH:mm:ss") @row.Level - @(row.SourceContext?.Split('.').LastOrDefault() ?? "—") + @Html.Raw(row.SourceContext?.Split('.').LastOrDefault() ?? "—") @row.Message @@ -162,8 +162,8 @@ } - @(row.UserName ?? "—") - @(row.CompanyId?.ToString() ?? "—") + @Html.Raw(row.UserName ?? "—") + @Html.Raw(row.CompanyId?.ToString() ?? "—") } @@ -195,7 +195,7 @@
-
@msgTruncated
+
@Html.Raw(msgTruncated)
@row.Timestamp.Tz(ViewBag.CompanyTimeZone as string).ToString("MM/dd HH:mm:ss")
@@ -208,7 +208,7 @@
Source - @(row.SourceContext?.Split('.').LastOrDefault() ?? "—") + @Html.Raw(row.SourceContext?.Split('.').LastOrDefault() ?? "—")
@if (row.UserName != null) { diff --git a/src/PowderCoating.Web/Views/TaxRates/Index.cshtml b/src/PowderCoating.Web/Views/TaxRates/Index.cshtml index dd46bf2..c8b5cac 100644 --- a/src/PowderCoating.Web/Views/TaxRates/Index.cshtml +++ b/src/PowderCoating.Web/Views/TaxRates/Index.cshtml @@ -67,8 +67,8 @@ } @rate.Rate.ToString("0.##")% - @(rate.State ?? "—") - @(rate.Description ?? "—") + @Html.Raw(rate.State ?? "—") + @Html.Raw(rate.Description ?? "—") @if (rate.IsDefault) { diff --git a/src/PowderCoating.Web/Views/UsageQuota/Index.cshtml b/src/PowderCoating.Web/Views/UsageQuota/Index.cshtml index cf1914b..5d08bd2 100644 --- a/src/PowderCoating.Web/Views/UsageQuota/Index.cshtml +++ b/src/PowderCoating.Web/Views/UsageQuota/Index.cshtml @@ -220,23 +220,23 @@
Users - @row.Users / @LimitDisplay(row.MaxUsers) + @row.Users / @Html.Raw(LimitDisplay(row.MaxUsers))
Active Jobs - @row.ActiveJobs / @LimitDisplay(row.MaxActiveJobs) + @row.ActiveJobs / @Html.Raw(LimitDisplay(row.MaxActiveJobs))
Customers - @row.Customers / @LimitDisplay(row.MaxCustomers) + @row.Customers / @Html.Raw(LimitDisplay(row.MaxCustomers))
Active Quotes - @row.ActiveQuotes / @LimitDisplay(row.MaxActiveQuotes) + @row.ActiveQuotes / @Html.Raw(LimitDisplay(row.MaxActiveQuotes))
Catalog Items - @row.CatalogItems / @LimitDisplay(row.MaxCatalogItems) + @row.CatalogItems / @Html.Raw(LimitDisplay(row.MaxCatalogItems))