note 87218 modified in tidy.examples by danbrown
| From: | danbrown@php.net | Date: | Tue, 25 Nov 2008 15:58:14 +0000 |
| Subject: | note 87218 modified in tidy.examples by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146932@lists.php.net to get a copy of this message | ||
That seems to be the correct config to symply tidy an HTML fragment (in a valid XHTML syntax) :
<?php
$tidy_config = array(
'clean' => true,
'drop-proprietary-attributes' => true,
'output-xhtml' => true,
'show-body-only' => true,
'word-2000' => true,
'wrap' => '0'
);
?>
--was--
That seems to be the correct config to symply tidy an HTML fragment (in a valid XHTML syntax) :
<code>
$tidy_config = array(
'clean' => true,
'drop-proprietary-attributes' => true,
'output-xhtml' => true,
'show-body-only' => true,
'word-2000' => true,
'wrap' => '0'
);
</code>
http://php.net/manual/en/tidy.examples.php