The TidyFilter allows you to use the PHP tidy extension to clean up and repair
HTML documents. Usage example:
<filterchain>
<tidyfilter encoding="utf8">
<config name="indent" value="true" />
<config name="output-xhtml" value="true" />
</tidyfilter>
</filterchain>
Table E.15: Attributes for the <tidyfilter> tag
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
encoding | String | The expected input encoding of the file. | utf8 | No |
The TidyFilter supports nested <config> tags to configure
how Tidy should manipulate the documents. For a complete list of configuration
options see the official Quick
Reference.