note 70032 deleted from function.tidy-parse-string by nlopess
| From: | nlopess@php.net | Date: | Sun, 01 Oct 2006 15:45:16 +0000 |
| Subject: | note 70032 deleted from function.tidy-parse-string by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117899@lists.php.net to get a copy of this message | ||
Note Submitter: Ard
Reason: useless
----
On Windows I noticed that tidy wil output a tab if the html-source provided is empty (that is:
"" or null) and show-body-only is used .
Example:
<?php
$html = '';
$tidy = tidy_parse_string($html, array('show-body-only' => true));
echo 'tidied:'; var_dump(tidy_get_output($tidy));
echo 'untidied:'; var_dump($html);
?>
<output>
--------------------
tidied:string(1) ""
untidied:string(0) ""
---------------------------
</output>
string(1) is a tab-character.
Beware of this strange behaviour. Changing indent-option won't help. The documentation says
tab-size
"is used to map tabs to spaces when reading the input.
Tidy never outputs tabs."
http://tidy.sourceforge.net/docs/tidy_man.html
So this isn't the case...