> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/cms/wordpress/helpers-functions-1/weglot_html_treat_page.md).

# weglot\_html\_treat\_page

This filter allow you to modifiy the translated content when this one is html.

The filter receives the translated HTML page (a string) and must return it. It also runs on XML responses, before `weglot_xml_treat_page`.

```php
add_filter( 'weglot_html_treat_page', 'custom_weglot_html_treat_page' );
function custom_weglot_html_treat_page( $html ) {
    // Edit the translated HTML here.
    return $html;
}
```
