You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a random HTML `string`, with a given maximum depth and width. By default, the depth and width are `4`.
6
+
7
+
Depth defines the maximum depth of the body.
8
+
9
+
Width defines the maximum of siblings each element can have.
10
+
11
+
```php
12
+
echo $faker->randomHtml();
13
+
14
+
// '<html><head><title>Laborum doloribus voluptatum vitae quia voluptatum ipsum veritatis.</title></head><body><formaction="example.org"method="POST"><labelfor="username">sit</label><inputtype="text"id="username"><labelfor="password">amet</label><inputtype="password"id="password"></form><divclass="et"><span>Numquam magnam.</span><p>Neque facere consequuntur autem quisquam.</p><ul><li>Veritatis sint.</li><li>Et ducimus.</li><li>Veniam accusamus cupiditate.</li><li>Eligendi eum et doloribus.</li><li>Voluptate ipsa dolores est.</li><li>Enim.</li><li>Dignissimos nostrum atque et excepturi.</li><li>Nisi veniam.</li><li>Voluptate nihil labore sapiente.</li><li>Ut.</li><li>Id suscipit.</li></ul><i>Qui tempora minima ad.</i></div></body></html>'
15
+
16
+
echo $faker->randomHtml(1, 1);
17
+
18
+
// '<html><head><title>Architecto ut eius nisi molestiae atque ab.</title></head><body><formaction="example.net"method="POST"><labelfor="username">saepe</label><inputtype="text"id="username"><labelfor="password">est</label><inputtype="password"id="password"></form></body></html>'
0 commit comments