php-src/ext/tidy/tests/015.phpt
John Coggeshall d900d73763 Added an optional array parameter to tidy_parse_file/string to
fix a bug. Apparently some libtidy config options must be set
prior to parsing in order to work properly.
2004-01-06 18:24:17 +00:00

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>