| | 465 | <h2><a name="TidyFilter"></a>TidyFilter</h2> |
|---|
| | 466 | <p> |
|---|
| | 467 | The <em>TidyFilter</em> allows you to use the <a href="http://php.net/tidy">PHP |
|---|
| | 468 | tidy extension</a> to clean up and repeair HTML documents. Usage example: |
|---|
| | 469 | </p> |
|---|
| | 470 | <pre> |
|---|
| | 471 | <filterchain> |
|---|
| | 472 | <tidyfilter encoding="utf8"> |
|---|
| | 473 | <config name="indent" value="true" /> |
|---|
| | 474 | <config name="output-xhtml" value="true" /> |
|---|
| | 475 | </tidyfilter> |
|---|
| | 476 | </filterchain> |
|---|
| | 477 | </pre> |
|---|
| | 478 | <h3>Attributes</h3> |
|---|
| | 479 | <table> |
|---|
| | 480 | <caption> |
|---|
| | 481 | Attributes for the <em><tidyfilter></em> tag |
|---|
| | 482 | </caption> |
|---|
| | 483 | <thead> |
|---|
| | 484 | <tr> |
|---|
| | 485 | <th>Name</th> |
|---|
| | 486 | <th>Type</th> |
|---|
| | 487 | <th>Description</th> |
|---|
| | 488 | <th>Default</th> |
|---|
| | 489 | <th>Required</th> |
|---|
| | 490 | </tr> |
|---|
| | 491 | </thead> |
|---|
| | 492 | <tbody> |
|---|
| | 493 | <tr> |
|---|
| | 494 | <td>encoding</td> |
|---|
| | 495 | <td>String</td> |
|---|
| | 496 | <td> |
|---|
| | 497 | The expected input encoding of the file. |
|---|
| | 498 | </td> |
|---|
| | 499 | <td>utf8</td> |
|---|
| | 500 | <td>No</td> |
|---|
| | 501 | </tr> |
|---|
| | 502 | </tbody> |
|---|
| | 503 | </table> |
|---|
| | 504 | <h3>Nested Tags</h3> |
|---|
| | 505 | <p> |
|---|
| | 506 | The <em>TidyFilter</em> supports nested <config> tags to configure how |
|---|
| | 507 | Tidy should manipulate the documents. For a complete list of configuration |
|---|
| | 508 | options see the offical |
|---|
| | 509 | <a href="http://tidy.sourceforge.net/docs/quickref.html">Quick Reference</a>. |
|---|
| | 510 | </p> |
|---|
| | 511 | |
|---|