---
title: 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 `HtmlNode`.

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