tidy_setopt

Updates the configuration settings for the specified tidy document

&reftitle.description; `bool` `tidy_setopt` `string` `option` `mixed` `value`

`tidy_setopt` updates the specified `option` with a new `value`.

&reftitle.parameters;

`option`

- The tidy option name. A list of available configuration options may be found at: &url.tidy.conf;.

`value`

- The tidy option name.

&reftitle.returnvalues;

&return.success;

&reftitle.examples;

### `tidy_setopt` example

    <?php
    $html = '<p>test</i>';

    $tidy = tidy_parse_string($html);

    tidy_setopt('indent', FALSE);
    ?>

&reftitle.notes; ¬e.tidy.1only;
&reftitle.seealso;

- `tidy_getopt`
- `tidy_get_config`
- `tidy_reset_config`
- `tidy_save_config`