diff --git a/library/Icingadb/Common/ObjectInspectionDetail.php b/library/Icingadb/Common/ObjectInspectionDetail.php index 7de54ffde..54b31faf9 100644 --- a/library/Icingadb/Common/ObjectInspectionDetail.php +++ b/library/Icingadb/Common/ObjectInspectionDetail.php @@ -90,7 +90,7 @@ protected function createLastCheckResult() ]; if ($command) { - $execCommand = new HtmlElement('pre', null, $command); + $execCommand = new HtmlElement('pre', null, Text::create($command)); CopyToClipboard::attachTo($execCommand); } else { $execCommand = new EmptyState(t('n. a.'));