mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

amount of confusion when setting Tidy configuration options. All configuration must now be done pre-parsing of the document. Removed references to the tidy_attr class, as it is no longer used (since tidy 2.0) and made tidy throw exceptions for all truly non-fatal errors.
16 lines
No EOL
311 B
PHP
16 lines
No EOL
311 B
PHP
--TEST--
|
|
Parsing a file using constructor
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
|
--POST--
|
|
--GET--
|
|
--INI--
|
|
--FILE--
|
|
<?php
|
|
$tidy = new tidy("ext/tidy/tests/013.html", array("show-body-only"=>true));
|
|
$tidy->clean_repair();
|
|
echo $tidy;
|
|
|
|
?>
|
|
--EXPECT--
|
|
<b>testing</b>
|