note 45504 added to ref.tidy
| From: | wb at pro-net dot co dot uk | Date: | Thu, 09 Sep 2004 11:43:46 +0000 |
| Subject: | note 45504 added to ref.tidy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76313@lists.php.net to get a copy of this message | ||
Here is a quick example usage for the tidy object:
<?php
// $html is the current html.
$tidyConfig = array('indent' => TRUE,
'output-xhtml' => TRUE,
'wrap' => 79
);
$tidy = new Tidy();
$tidy->parseString($html, $tidyConfig, 'UTF8');
$tidy->cleanRepair();
// To get the fixed html all we need to do it type cast the tidy object to a string..
print((string)$tidy);
?>
----
Manual Page -- http://www.php.net/manual/en/ref.tidy.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45504
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45504&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45504&report=yes
Search -- http://master.php.net/manage/user-notes.php