View file core/libs/htmlParser/manual/docs/api/simple_html_dom/set_callback.md

File size: 350B
# set_callback

```php
set_callback ( string $function_name )
```

Sets the callback function which is called on each element of the DOM when building outertext.
The function must accept a single parameter of type `simple_html_dom_node`.

| Parameter         | Description
| ---------         | -----------
| `function_name`   | Name of the function.