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
{{ message }}
Repository navigation
Commit 1c0db07
Browse filesBrowse the repository at this point in the historyBrowse files
> ⚠️ **Warning:** Only use `raw()` with trusted content. Never pass user input directly to `raw()` - that defeats the XSS protection!
218
+
199
219
### LLM-friendly
200
220
201
221
Using AI to generate HTML? Elem's structure catches mistakes that would slip through with templates:
@@ -470,7 +490,7 @@ $card->__invoke(
470
490
The `__invoke` method accepts variadic arguments, so you can pass any number of children. It also handles arrays and any `iterable`, which is why `array_map()`, `list_of()`, and Laravel collections all work seamlessly:
471
491
472
492
```php
473
-
public function __invoke(DOMNode|Element|string|iterable|null ...$children): static
493
+
public function __invoke(DOMNode|Element|RawHtml|string|iterable|null ...$children): static
474
494
```
475
495
476
496
## API Reference
@@ -485,6 +505,7 @@ All element classes extend the base `Element` class and provide fluent interface
0 commit comments