From d26248f6ed5dfcd6b7462e70432db4ed6b90aa89 Mon Sep 17 00:00:00 2001 From: Annie Kyles Date: Tue, 4 Feb 2025 11:30:40 +1300 Subject: [PATCH] BUGFIX double escaped mdash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print Report view was double-escaping the mdash, showing the escaped html "—" instead of "—" --- src/Models/BaseElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/BaseElement.php b/src/Models/BaseElement.php index 1b259ccb..8a1ad133 100644 --- a/src/Models/BaseElement.php +++ b/src/Models/BaseElement.php @@ -1162,7 +1162,7 @@ public function getDescription() public function getTypeNice() { $description = Deprecation::withSuppressedNotice(fn () => $this->getDescription()); - $desc = ($description) ? ' — ' . $description . '' : ''; + $desc = $description ? " — {$description}" : ''; return DBField::create_field( 'HTMLVarchar',