@@ -87,52 +87,6 @@ private array $attributes = ['class' => 'btn'];
8787$classes = CssClasses::add($this->attributes, ['btn-primary', 'btn-lg'], true);
8888```
8989
90- ### Create a new ` HTML ` element
91-
92- To create a new ` HTML ` element, you can use the ` HTMLBuilder::class ` with the ` createTag() ` method.
93-
94- Allowed arguments are:
95-
96- - ` tag ` (string) - The tag name.
97- - ` content ` (string) - The content of the tag.
98- - ` attributes ` (array) - The attributes of the tag.
99-
100- ``` php
101- <?php
102-
103- declare(strict_types=1);
104-
105- use UIAwesome\Html\Helper\HTMLBuilder;
106- ?>
107-
108- <?= HTMLBuilder::createTag('div', 'Hello, World!', ['class' => 'container']) ?>
109- ```
110-
111- ### Create a new ` HTML ` block element
112-
113- To create a new ` HTML ` block element, you can use the ` HTMLBuilder::class ` with the ` beginTag() ` and ` endTag() ` methods.
114-
115- Allowed arguments for ` beginTag() ` method are:
116-
117- - ` tag ` (string) - The tag name.
118- - ` attributes ` (array) - The attributes of the tag.
119-
120- Allowed arguments for ` endTag() ` method are:
121-
122- - ` tag ` (string) - The tag name.
123-
124- ``` php
125- <?php
126-
127- declare(strict_types=1);
128-
129- use UIAwesome\Html\Helper\HTMLBuilder;
130-
131- <?= HTMLBuilder::beginTag('div', ['class' => 'container']) ?>
132- Hello, World!
133- <?= HTMLBuilder::endTag('div') ?>
134- ```
135-
13690### Convert regular expression to pattern
13791
13892The ` Utils::class ` helper can be used to normalize a regular expression.
0 commit comments