From 21768ce166b9b9859e756953b46d1df4841da891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Wed, 27 Nov 2024 17:59:07 +0100 Subject: [PATCH] simplify --- src/Text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }