diff --git a/src/View/Helper/BootstrapHelper.php b/src/View/Helper/BootstrapHelper.php index 12ccad9..f8d5024 100644 --- a/src/View/Helper/BootstrapHelper.php +++ b/src/View/Helper/BootstrapHelper.php @@ -811,7 +811,10 @@ class BoostrapListTable extends BootstrapGeneric private function genCell($field = []) { if (isset($field['raw'])) { - $cellContent = h($field['raw']); + $cellContent = $field['raw']; + if (empty($field['no_escaping'])) { + $field['raw'] = h($field['raw']); + } } else if (isset($field['formatter'])) { $cellContent = $field['formatter']($this->getValueFromObject($field), $this->item); } else if (isset($field['type'])) { @@ -822,6 +825,11 @@ class BoostrapListTable extends BootstrapGeneric } else { $cellContent = h($this->getValueFromObject($field)); } + foreach (['info', 'warning', 'danger'] as $message_type) { + if (!empty($field[$message_type])) { + $cellContent .= sprintf(' %s', $message_type, $field[$message_type]); + } + } return $this->genNode('td', [ 'class' => [ 'col-8 col-sm-10',