diff --git a/reference/tidy/reference.xml b/reference/tidy/reference.xml index 8b39e2f0c5..64e7e0337a 100644 --- a/reference/tidy/reference.xml +++ b/reference/tidy/reference.xml @@ -1,5 +1,5 @@ - + Tidy Functions @@ -33,7 +33,42 @@ &reference.tidy.constants; +
+ &reftitle.examples; + + This simple example shows basic Tidy usage. + + Basic Tidy usage + + +a html document + true, + 'output-xhtml' => true, + 'wrap' => 200); + +// Tidy +$tidy = new tidy; +$tidy->parseString($html, $config, 'utf8'); +$tidy->cleanRepair(); + +// Output +echo $tidy; +?> +]]> + + + +
+ &reference.tidy.functions;