Skip to content

Commit

Permalink
Merge pull request #1 from thisisannie/thisisannie-patch-print-view
Browse files Browse the repository at this point in the history
BUGFIX double escaped mdash
  • Loading branch information
thisisannie authored Feb 3, 2025
2 parents a144f9c + d26248f commit ab34c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ public function getDescription()
public function getTypeNice()
{
$description = Deprecation::withSuppressedNotice(fn () => $this->getDescription());
$desc = ($description) ? ' <span class="element__note"> &mdash; ' . $description . '</span>' : '';
$desc = $description ? " <span class=\"element__note\"> {$description}</span>" : '';

return DBField::create_field(
'HTMLVarchar',
Expand Down

0 comments on commit ab34c5b

Please sign in to comment.