Ticket #1216: html-tidy-logic.php.diff

File html-tidy-logic.php.diff, 715 bytes (added by guest, 11 years ago)

Patch for HtmlTidy?

  • HtmlTidy/html-tidy-logic.php

    old new  
    4141 
    4242        } else { 
    4343    /* Use tidy if it's available from PECL */ 
    4444    if( function_exists('tidy_parse_string') ) 
    4545    { 
    46       $tempsrc = tidy_parse_string($source); 
    47       tidy_clean_repair(); 
    48       $newsrc = tidy_get_output(); 
     46      $tempsrc = tidy_parse_string($source, "{$cwd}html-tidy-config.cfg"); 
     47      tidy_clean_repair($tempsrc); 
     48      $newsrc = tidy_get_output($tempsrc); 
    4949    } 
    5050    else 
    5151    { 
    5252      // Better give them back what they came with, so they don't lose it all... 
    5353      $newsrc = "<body>\n" .$source. "\n</body>";