diff --git a/src/Text.php b/src/Text.php index f0a6322a37..82f9660e5b 100644 --- a/src/Text.php +++ b/src/Text.php @@ -56,9 +56,9 @@ public function set($text) */ public function addParagraph($text) { - $this->content[] = (new HtmlValue())->dangerouslySetHtml('
'); + $this->dangerouslyAddHtml('
'); $this->content[] = (new HtmlValue())->set($text); - $this->content[] = (new HtmlValue())->dangerouslySetHtml('
'); + $this->dangerouslyAddHtml(''); return $this; }