Changeset 394
- Timestamp:
- 10/22/05 03:53:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/HtmlTidy/html-tidy-logic.php
r296 r394 18 18 1 => array("pipe", "w") 19 19 ); 20 $process = proc_open("tidy -utf8 -config html-tidy-config.cfg", $descriptorspec, $pipes);20 $process = @proc_open("tidy -utf8 -config html-tidy-config.cfg", $descriptorspec, $pipes); 21 21 22 22 … … 40 40 41 41 } else { 42 // Better give them back what they came with, so they don't lose it all... 43 $newsrc = "<body>\n" .$source. "\n</body>"; 42 /* Use tidy if it's available from PECL */ 43 if( function_exists('tidy_parse_string') ) 44 { 45 $tempsrc = tidy_parse_string($source); 46 tidy_clean_repair(); 47 $newsrc = tidy_get_output(); 48 } 49 else 50 { 51 // Better give them back what they came with, so they don't lose it all... 52 $newsrc = "<body>\n" .$source. "\n</body>"; 53 } 44 54 } 45 55
Note: See TracChangeset
for help on using the changeset viewer.