E.19 TidyFilter

The TidyFilter allows you to use the PHP tidy extension to clean up and repair HTML documents. Usage example:

  <tidyfilter encoding="utf8">
    <config name="indent" value="true" />
    <config name="output-xhtml" value="true" />

Table E.15:  Attributes for the <tidyfilter> tag

encodingStringThe expected input encoding of the file.utf8No

E.19.1 Nested tags

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.