Skip to content

Commit

Permalink
Use HtmlString::create instead of Text::create to render style
Browse files Browse the repository at this point in the history
…element
  • Loading branch information
raviks789 committed Aug 7, 2023
1 parent 34c2311 commit 1d17e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use ipl\Html\Attributes;
use ipl\Html\BaseHtmlElement;
use ipl\Html\HtmlElement;
use ipl\Html\Text;
use ipl\Html\HtmlString;
use ipl\Html\ValidHtml;

class Style extends LessRuleset implements ValidHtml
Expand Down Expand Up @@ -66,7 +66,7 @@ public function render(): string
return new HtmlElement(
'style',
(new Attributes())->addAttribute(new Attribute('nonce', $this->nonce)),
Text::create($ruleset->renderCss())
HtmlString::create($ruleset->renderCss())
);
}

Expand Down

0 comments on commit 1d17e2e

Please sign in to comment.