3 namespace BookStack\Activity\Notifications\MessageParts;
5 use Illuminate\Contracts\Support\Htmlable;
8 * A bullet point list of content, where the keys of the given list array
9 * are bolded header elements, and the values follow.
11 class ListMessageLine implements Htmlable
13 public function __construct(
18 public function toHtml(): string
21 foreach ($this->list as $header => $content) {
22 $list[] = '<strong>' . e($header) . '</strong> ' . e($content);
24 return implode("<br>\n", $list);