mirror of
https://github.com/php/php-src.git
synced 2024-10-10 03:02:13 +00:00
d900d73763
fix a bug. Apparently some libtidy config options must be set prior to parsing in order to work properly.
16 lines
368 B
PHP
16 lines
368 B
PHP
--TEST--
|
|
Passing configuration options through tidy_parse_file().
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
|
--POST--
|
|
--GET--
|
|
--INI--
|
|
--FILE--
|
|
<?php
|
|
$tidy = tidy_parse_file("ext/tidy/tests/015.html", array('show-body-only'=>true));
|
|
tidy_clean_repair($tidy);
|
|
echo tidy_get_output($tidy);
|
|
|
|
?>
|
|
--EXPECT--
|
|
<b>testing</b>
|