Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Nov 27, 2024
1 parent ec8e01b commit 21768ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function set($text)
*/
public function addParagraph($text)
{
$this->content[] = (new HtmlValue())->dangerouslySetHtml('<p>');
$this->dangerouslyAddHtml('<p>');
$this->content[] = (new HtmlValue())->set($text);
$this->content[] = (new HtmlValue())->dangerouslySetHtml('</p>');
$this->dangerouslyAddHtml('</p>');

return $this;
}
Expand Down

0 comments on commit 21768ce

Please sign in to comment.