/PHP-7.1/ext/tidy/tests/ |
H A D | 023.phpt | 2 tidy and tidyNode OO 4 <?php if (!extension_loaded('tidy')) echo 'skip'; ?> 9 new tidy(); 10 var_dump(new tidy()); 14 $tidy = new tidy(); 15 $tidy->parseString('<html><?php echo "xpto;" ?></html>'); 17 var_dump(tidy_get_root($tidy)->child[0]->isHtml()); 18 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isPHP()); 19 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isAsp()); 23 var_dump(tidy_get_root($tidy)->child[0]->hasChildren()); [all …]
|
H A D | 025.phpt | 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 8 $tidy=tidy_parse_string('<% %>', array('newline' => 'LF')); 9 var_dump($tidy->Root()->child[0]->isAsp()); 11 $tidy=tidy_parse_string('<# #>', array('newline' => 'LF')); 12 var_dump($tidy->Root()->child[0]->isJste()); 14 $tidy=tidy_parse_string('<html><body>text</body></html>'); 15 var_dump($tidy->Root()->child[0]->child[1]->child[0]->isText()); 17 $tidy=tidy_parse_string('<html><body><!-- comment --></body></html>', array('newline' => 'LF')); 18 $n = $tidy->Root()->child[0]->child[1]->child[0]; 24 var_dump($tidy->Root()->child[0]->child[0]->hasSiblings());
|
H A D | 020.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 8 $tidy = new tidy(); 14 $tidy->parseString($str, array('output-xhtml'=>1), 'latin1'); 15 $tidy->cleanRepair(); 16 $tidy->diagnose(); 17 var_dump(tidy_warning_count($tidy) > 0); 18 var_dump(strlen($tidy->errorBuffer) > 50); 20 echo $tidy;
|
H A D | tidy_error.phpt | 7 if (!extension_loaded("tidy")) print "skip tidy extension not loaded"; 21 $tidy = tidy_parse_string($html); 23 echo tidy_get_status($tidy); 27 $tidy = tidy_parse_string($html); 29 echo tidy_get_status($tidy); 33 $tidy = tidy_parse_string($html); 35 echo tidy_get_status($tidy);
|
H A D | tidy_error1.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 14 $tidy = new tidy(); 15 var_dump($tidy->parseString($buffer, $config)); 18 Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d
|
H A D | 013.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = new tidy(dirname(__FILE__)."/013.html", array("show-body-only"=>true)); 8 $tidy->cleanRepair(); 9 echo $tidy;
|
H A D | 030.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 16 $tidy = new tidy(); 17 $tidy->parseString($buffer, $config); 18 $c = $tidy->getConfig();
|
H A D | 034.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 15 $tidy = tidy_parse_string($buffer, $config); 16 $tidy->diagnose(); 17 var_dump(tidy_access_count($tidy));
|
H A D | 007.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 6 tidy.default_config= 9 $a = new tidy(dirname(__FILE__)."/007.html"); 10 echo "Current Value of 'tidy-mark': "; 11 var_dump($a->getopt("tidy-mark")); 21 Current Value of 'tidy-mark': bool(false) 25 Warning: tidy::getOpt(): Unknown Tidy Configuration Option 'bogus-opt' in %s007.php on line 10
|
H A D | 001.phpt | 2 Check for tidy presence 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 echo "tidy extension is available"; 10 tidy extension is available
|
H A D | 027.phpt | 2 Bug: tidy segfaults with markup=false 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 31 $tidy = new tidy; 32 $tidy->parseString($data, $this->tidyconfig, 'utf8'); 33 $tidy->cleanRepair(); 35 return $tidy;
|
H A D | 015.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = tidy_parse_file(dirname(__FILE__)."/015.html", array('show-body-only'=>true)); 8 tidy_clean_repair($tidy); 9 echo tidy_get_output($tidy);
|
H A D | 014.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 8 $tidy = tidy_parse_string($text, array('show-body-only'=>true)); 9 tidy_clean_repair($tidy); 10 echo tidy_get_output($tidy);
|
H A D | 033.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 13 $tidy = tidy_parse_string($buffer); 14 var_dump(tidy_warning_count($tidy));
|
H A D | 032.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 13 $tidy = tidy_parse_string($buffer); 14 var_dump(tidy_error_count($tidy));
|
H A D | 031.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 14 $tidy = tidy_parse_string($buffer, $config); 15 var_dump(tidy_config_count($tidy));
|
H A D | 016.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = tidy_parse_file(dirname(__FILE__)."/016.html", 9 $cfg = $tidy->getConfig();
|
H A D | 026.phpt | 2 tidy.clean_output test 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 6 tidy.clean_output=1
|
H A D | 024.phpt | 5 if (!extension_loaded('tidy')) die('skip'); 26 $tidy = tidy_parse_string($contents, $config, 'utf8'); 27 $tidy->cleanRepair(); 28 echo $tidy;
|
H A D | bug_50558.phpt | 2 Bug #50558 - Broken object model when extending tidy 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 class MyTidy extends tidy
|
H A D | 021.phpt | 4 <?php if (!extension_loaded("tidy") || !function_exists('tidy_get_opt_doc')) print "skip"; ?> 8 var_dump(tidy_get_opt_doc(new tidy, 'some_bogus_cfg')); 10 $t = new tidy;
|
/PHP-7.1/ext/tidy/ |
H A D | config.w32 | 4 ARG_WITH("tidy", "TIDY support", "no"); 7 if (CHECK_LIB("libtidy_a.lib;libtidy.lib;tidy_a.lib;tidy.lib", "tidy", PHP_TIDY) && 9 CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") || 10 CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) || 11 CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true) 18 EXTENSION("tidy", "tidy.c"); 23 ADD_DEF_FILE("ext\\tidy\\php_tidy.def"); 26 WARNING("tidy not enabled; libraries and headers not found");
|
H A D | config.m4 | 5 PHP_ARG_WITH(tidy,for TIDY support, 6 [ --with-tidy[=DIR] Include TIDY support]) 17 if test -f $i/include/tidy/tidy.h; then 19 TIDY_INCDIR=$i/include/tidy 20 elif test -f $i/include/tidy.h; then 30 dnl which indicates that we are building against tidy-html5 40 TIDY_LIB_NAME=tidy 41 PHP_CHECK_LIBRARY(tidy,tidyOptGetDoc, 56 PHP_NEW_EXTENSION(tidy, tidy.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
H A D | php_tidy.h | 40 ZEND_BEGIN_MODULE_GLOBALS(tidy) 43 ZEND_END_MODULE_GLOBALS(tidy) 45 #define TG(v) ZEND_MODULE_GLOBALS_ACCESSOR(tidy, v)
|
/PHP-7.1/ext/tidy/examples/ |
H A D | cleanhtml5.php | 19 $tidy = tidy_parse_string($data); variable 21 $tidy = tidy_parse_file($_SERVER['argv'][1]); variable 24 $tidy->cleanRepair(); 26 if(!empty($tidy->errorBuffer)) { 29 echo "{$tidy->errorBuffer}\n"; 33 echo $tidy;
|